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

Method reborrow

inout/src/inout.rs:16–22  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

14 /// Reborrow `self`.
15 #[inline(always)]
16 pub fn reborrow(&mut self) -> InOut<'_, '_, T> {
17 Self {
18 in_ptr: self.in_ptr,
19 out_ptr: self.out_ptr,
20 _pd: PhantomData,
21 }
22 }
23
24 /// Get immutable reference to the input value.
25 #[inline(always)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected