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

Function as_mut_ptr

src/utils.rs:18–20  ·  view source on GitHub ↗
(t: &mut T)

Source from the content-addressed store, hash-verified

16/// Convert a `&mut T` into a `*mut T` without using an `as`.
17#[inline]
18pub(crate) fn as_mut_ptr<T>(t: &mut T) -> *mut T {
19 t
20}
21
22/// Convert an `Option<&T>` into a possibly-null `*const T`.
23#[inline]

Callers 15

prctl_get_at_arg2Function · 0.85
set_speedFunction · 0.85
set_output_speedFunction · 0.85
set_input_speedFunction · 0.85
cfmakerawFunction · 0.85
getsockopt_rawFunction · 0.85
clear_familyMethod · 0.85
capgetFunction · 0.85
capsetFunction · 0.85
by_mutFunction · 0.85
clear_familyMethod · 0.85
sched_getaffinityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected