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

Method into_buf

inout/src/inout.rs:150–157  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

148 #[inline(always)]
149 #[must_use]
150 pub fn into_buf(self) -> InOutBuf<'inp, 'out, T> {
151 InOutBuf {
152 in_ptr: self.in_ptr.cast::<T>(),
153 out_ptr: self.out_ptr.cast::<T>(),
154 len: N::USIZE,
155 _pd: PhantomData,
156 }
157 }
158}
159
160impl<'inp, 'out, T, N, M> From<InOut<'inp, 'out, Array<T, Prod<N, M>>>>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected