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

Method from

inout/src/inout_buf.rs:20–28  ·  view source on GitHub ↗
(buf: &'a mut [T])

Source from the content-addressed store, hash-verified

18impl<'a, T> From<&'a mut [T]> for InOutBuf<'a, 'a, T> {
19 #[inline(always)]
20 fn from(buf: &'a mut [T]) -> Self {
21 let p = buf.as_mut_ptr();
22 Self {
23 in_ptr: p,
24 out_ptr: p,
25 len: buf.len(),
26 _pd: PhantomData,
27 }
28 }
29}
30
31impl<'a, T> InOutBuf<'a, 'a, T> {

Callers

nothing calls this directly

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected