pub struct EAVOrder;Expand description
Key schema ordering: Entity → Attribute → Value.
Trait Implementations§
Source§impl KeySchema<TRIBLE_LEN> for EAVOrder
impl KeySchema<TRIBLE_LEN> for EAVOrder
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; 64]
const KEY_TO_TREE: [usize; 64]
Maps each key index to its position in the tree view.
Source§const TREE_TO_KEY: [usize; 64]
const TREE_TO_KEY: [usize; 64]
Maps each tree index to its position in the key view.
Source§type Segmentation = TribleSegmentation
type Segmentation = TribleSegmentation
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 EAVOrder
Auto Trait Implementations§
impl Freeze for EAVOrder
impl RefUnwindSafe for EAVOrder
impl Send for EAVOrder
impl Sync for EAVOrder
impl Unpin for EAVOrder
impl UnsafeUnpin for EAVOrder
impl UnwindSafe for EAVOrder
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