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

Class InOut

inout/src/inout.rs:7–11  ·  view source on GitHub ↗

Custom pointer type which contains one immutable (input) and one mutable (output) pointer, which are either equal or non-overlapping.

Source from the content-addressed store, hash-verified

5/// Custom pointer type which contains one immutable (input) and one mutable
6/// (output) pointer, which are either equal or non-overlapping.
7pub struct InOut<'inp, 'out, T> {
8 pub(crate) in_ptr: *const T,
9 pub(crate) out_ptr: *mut T,
10 pub(crate) _pd: PhantomData<(&'inp T, &'out mut T)>,
11}
12
13impl<'inp, 'out, T> InOut<'inp, 'out, T> {
14 /// Reborrow `self`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected