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

Method reborrow

inout/src/inout_buf.rs:163–170  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

161 /// Reborrow `self`.
162 #[inline(always)]
163 pub fn reborrow(&mut self) -> InOutBuf<'_, '_, T> {
164 Self {
165 in_ptr: self.in_ptr,
166 out_ptr: self.out_ptr,
167 len: self.len,
168 _pd: PhantomData,
169 }
170 }
171
172 /// Create [`InOutBuf`] from raw input and output pointers.
173 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected