pub struct IdentitySchema {}Expand description
A KeySchema that does not reorder the keys.
This is useful for keys that are already ordered in the desired way.
This is the default ordering.
Trait Implementations§
Source§impl Clone for IdentitySchema
impl Clone for IdentitySchema
Source§fn clone(&self) -> IdentitySchema
fn clone(&self) -> IdentitySchema
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdentitySchema
impl Debug for IdentitySchema
Source§impl<const KEY_LEN: usize> KeySchema<KEY_LEN> for IdentitySchema
impl<const KEY_LEN: usize> KeySchema<KEY_LEN> for IdentitySchema
Source§const SEGMENT_PERM: &'static [usize]
const SEGMENT_PERM: &'static [usize]
Order of segments from key layout to tree layout.
Source§const KEY_TO_TREE: [usize; KEY_LEN]
const KEY_TO_TREE: [usize; KEY_LEN]
Maps each key index to its position in the tree view.
Source§const TREE_TO_KEY: [usize; KEY_LEN]
const TREE_TO_KEY: [usize; KEY_LEN]
Maps each tree index to its position in the key view.
Source§type Segmentation = SingleSegmentation
type Segmentation = SingleSegmentation
The segmentation this ordering operates over.
Source§fn tree_ordered(key: &[u8; KEY_LEN]) -> [u8; KEY_LEN]
fn tree_ordered(key: &[u8; KEY_LEN]) -> [u8; KEY_LEN]
Reorders the key from the shared key ordering to the tree ordering.
Source§fn key_ordered(tree_key: &[u8; KEY_LEN]) -> [u8; KEY_LEN]
fn key_ordered(tree_key: &[u8; KEY_LEN]) -> [u8; KEY_LEN]
Reorders the key from the tree ordering to the shared key ordering.
impl Copy for IdentitySchema
Auto Trait Implementations§
impl Freeze for IdentitySchema
impl RefUnwindSafe for IdentitySchema
impl Send for IdentitySchema
impl Sync for IdentitySchema
impl Unpin for IdentitySchema
impl UnsafeUnpin for IdentitySchema
impl UnwindSafe for IdentitySchema
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more