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

Function by_ref

src/backend/linux_raw/conv.rs:211–214  ·  view source on GitHub ↗
(t: &T)

Source from the content-addressed store, hash-verified

209
210#[inline]
211pub(super) fn by_ref<T: Sized, Num: ArgNumber>(t: &T) -> ArgReg<'_, Num> {
212 let mut_ptr = as_ptr(t) as *mut T;
213 raw_arg(mut_ptr.cast())
214}
215
216#[inline]
217pub(super) fn by_mut<T: Sized, Num: ArgNumber>(t: &mut T) -> ArgReg<'_, Num> {

Callers 1

opt_refFunction · 0.85

Calls 2

as_ptrFunction · 0.85
raw_argFunction · 0.85

Tested by

no test coverage detected