#[non_exhaustive]pub struct TreeRef<const N: usize> {
pub key: Array<N>,
pub location: Array<N>,
pub node_count: u64,
pub count: u32,
}Expand description
A reference to a node in the tree.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: Array<N>The associated key with this TreeRef.
location: Array<N>The location of the TreeRef in the tree.
node_count: u64The total number of elements underneath this TreeRef. This represents the total number of nodes
under this node in the tree.
count: u32The number of nodes underneath this TreeRef when building the tree. This value is used in the tree building process
on insert, and does not consider the total number of nodes in the tree.
Implementations§
Trait Implementations§
Source§impl<const N: usize> Ord for TreeRef<N>
impl<const N: usize> Ord for TreeRef<N>
Source§impl<const N: usize> PartialOrd for TreeRef<N>
impl<const N: usize> PartialOrd for TreeRef<N>
impl<const N: usize> Copy for TreeRef<N>
impl<const N: usize> Eq for TreeRef<N>
impl<const N: usize> StructuralPartialEq for TreeRef<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for TreeRef<N>
impl<const N: usize> RefUnwindSafe for TreeRef<N>
impl<const N: usize> Send for TreeRef<N>
impl<const N: usize> Sync for TreeRef<N>
impl<const N: usize> Unpin for TreeRef<N>
impl<const N: usize> UnwindSafe for TreeRef<N>
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