pub struct Avltriee<T> { /* private fields */ }
Implementations
sourceimpl<T> Avltriee<T>where
T: Copy + Clone + Default,
impl<T> Avltriee<T>where
T: Copy + Clone + Default,
pub fn new(root: *mut u32, node_list: *mut AvltrieeNode<T>) -> Avltriee<T>
pub fn update(&mut self, row: u32, new_data: T)where
T: Ord,
pub fn update_node(&mut self, origin: u32, target_row: u32, data: T, ord: Ordering)where
T: Copy,
pub fn same_last(&self, row: u32) -> u32
pub fn update_same(&mut self, vertex_row: u32, update_target_row: u32)
pub fn iter(&self) -> AvltrieeIter<'_, T>
pub fn iter_by_value_from(&self, min_value: &T) -> AvltrieeIter<'_, T>where
T: Ord,
pub fn iter_by_value_to<'a>(
&'a self,
max_value: &'a T
) -> AvltrieeRangeIter<'a, T>where
T: Ord,
pub fn iter_by_value_from_to<'a>(
&'a self,
min_value: &'a T,
max_value: &'a T
) -> AvltrieeRangeIter<'a, T>where
T: Ord,
pub fn iter_by_row_from_to(
&self,
begin: u32,
end: u32
) -> AvltrieeRangeIter<'_, T>
pub fn iter_by_row_from(&self, begin: u32) -> AvltrieeIter<'_, T>
pub fn iter_by_row_to(&self, end: u32) -> AvltrieeRangeIter<'_, T>
pub fn node<'a>(&self, row: u32) -> Option<&'a AvltrieeNode<T>>
pub fn value<'a>(&self, row: u32) -> Option<&'a T>
pub fn root(&self) -> u32
pub fn init_node(&mut self, data: T, root: u32)where
T: Default + Copy,
pub fn offset<'a>(&self, offset: u32) -> &'a AvltrieeNode<T>
pub fn offset_mut<'a>(&mut self, offset: u32) -> &'a mut AvltrieeNode<T>
pub fn remove(&mut self, target_row: u32) -> Removed<T>where
T: Default + Clone,
pub fn search(&self, target: &T) -> (Ordering, u32)where
T: Ord,
pub fn search_cb<F>(&self, ord_cb: F) -> (Ordering, u32)where
F: Fn(&T) -> Ordering,
pub fn sames(&self, same_root: u32) -> Vec<u32, Global>
Auto Trait Implementations
impl<T> RefUnwindSafe for Avltriee<T>where
T: RefUnwindSafe,
impl<T> Send for Avltriee<T>where
T: Send,
impl<T> Sync for Avltriee<T>where
T: Sync,
impl<T> Unpin for Avltriee<T>
impl<T> UnwindSafe for Avltriee<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more