#[repr(C)]pub struct Node4 {
pub header: NodeHeader,
pub keys: [u8; 4],
pub children: [Atomic<ArtNode>; 4],
}Expand description
Node4: Small node with up to 4 children Most nodes in typical workloads are Node4
Fields§
§header: NodeHeader§keys: [u8; 4]Key bytes for each child (sorted)
children: [Atomic<ArtNode>; 4]Child pointers
Implementations§
Source§impl Node4
impl Node4
pub fn new() -> Self
pub fn with_prefix(prefix: &[u8]) -> Self
Sourcepub fn find_child<'g>(
&self,
key: u8,
guard: &'g Guard,
) -> Option<Shared<'g, ArtNode>>
pub fn find_child<'g>( &self, key: u8, guard: &'g Guard, ) -> Option<Shared<'g, ArtNode>>
Find child by key byte
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Node4
impl RefUnwindSafe for Node4
impl Send for Node4
impl Sync for Node4
impl Unpin for Node4
impl UnwindSafe for Node4
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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