MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / slice_mut

Function slice_mut

src/backend/linux_raw/conv.rs:204–208  ·  view source on GitHub ↗
(
    v: &mut [T],
)

Source from the content-addressed store, hash-verified

202
203#[inline]
204pub(super) fn slice_mut<T: Sized, Num0: ArgNumber, Num1: ArgNumber>(
205 v: &mut [T],
206) -> (ArgReg<'_, Num0>, ArgReg<'_, Num1>) {
207 (raw_arg(v.as_mut_ptr().cast()), pass_usize(v.len()))
208}
209
210#[inline]
211pub(super) fn by_ref<T: Sized, Num: ArgNumber>(t: &T) -> ArgReg<'_, Num> {

Callers 6

sendmmsgFunction · 0.85
getcwdFunction · 0.85
readlinkFunction · 0.85
getdentsFunction · 0.85
getdents_uninitFunction · 0.85
pollFunction · 0.85

Calls 4

raw_argFunction · 0.85
pass_usizeFunction · 0.85
as_mut_ptrMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected