MCPcopy Create free account
hub / github.com/RustCrypto/utils / from_raw

Method from_raw

inout/src/inout.rs:89–95  ·  view source on GitHub ↗
(in_ptr: *const T, out_ptr: *mut T)

Source from the content-addressed store, hash-verified

87 /// mutated for the duration of lifetime `'a`, except inside an `UnsafeCell`.
88 #[inline(always)]
89 pub unsafe fn from_raw(in_ptr: *const T, out_ptr: *mut T) -> InOut<'inp, 'out, T> {
90 Self {
91 in_ptr,
92 out_ptr,
93 _pd: PhantomData,
94 }
95 }
96}
97
98impl<T: Clone> InOut<'_, '_, T> {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected