pub struct TreeNode {
pub begin_pos: u64,
pub id: u64,
/* private fields */
}Fields§
§begin_pos: u64§id: u64Implementations§
Source§impl TreeNode
impl TreeNode
pub fn new() -> Self
pub fn min_value(&self) -> Option<&u8>
pub fn max_value(&self) -> Option<&u8>
pub fn iter(&self) -> Iter<'_, u8, Self>
pub fn iter_mut(&mut self) -> IterMut<'_, u8, Self>
pub fn len(&self) -> usize
pub fn get(&self, value: u8) -> Option<&Self>
pub fn get_mut(&mut self, value: u8) -> Option<&mut Self>
pub fn get_or_insert(&mut self, value: u8) -> &Self
pub fn get_or_insert_mut(&mut self, value: u8) -> &mut Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TreeNode
impl RefUnwindSafe for TreeNode
impl Send for TreeNode
impl Sync for TreeNode
impl Unpin for TreeNode
impl UnwindSafe for TreeNode
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> 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