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

Method from

inout/src/inout.rs:109–116  ·  view source on GitHub ↗
(val: &'a mut T)

Source from the content-addressed store, hash-verified

107impl<'a, T> From<&'a mut T> for InOut<'a, 'a, T> {
108 #[inline(always)]
109 fn from(val: &'a mut T) -> Self {
110 let p = ptr::from_mut(val);
111 Self {
112 in_ptr: p,
113 out_ptr: p,
114 _pd: PhantomData,
115 }
116 }
117}
118
119impl<'inp, 'out, T> From<(&'inp T, &'out mut T)> for InOut<'inp, 'out, T> {

Callers

nothing calls this directly

Calls 1

defaultFunction · 0.85

Tested by

no test coverage detected