pub struct TrivialPositionMap<R: RngCore + CryptoRng> { /* private fields */ }
Expand description
A trivial position map implemented via linear scanning.
Positions are represented as 32 bytes inside a page.
Create trivial position map
The number of keys in the map. The valid keys are in the range 0..len.
Write a new value to a particular key.
The new value should be a random nonce from a CSPRNG.
Returns the old value.
It is illegal to write to a key that is out of bounds.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.