pub struct AVLTree<T: Ord> { /* private fields */ }Expand description
A set based on an AVL Tree.
An AVL Tree is a self-balancing binary search tree. It tracks the height of each node and performs internal rotations to maintain a height difference of at most 1 between each sibling pair.
Implementations§
Trait Implementations§
Source§impl<T: Ord> FromIterator<T> for AVLTree<T>
impl<T: Ord> FromIterator<T> for AVLTree<T>
Source§fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<T> Freeze for AVLTree<T>
impl<T> RefUnwindSafe for AVLTree<T>where
T: RefUnwindSafe,
impl<T> Send for AVLTree<T>where
T: Send,
impl<T> Sync for AVLTree<T>where
T: Sync,
impl<T> Unpin for AVLTree<T>
impl<T> UnwindSafe for AVLTree<T>where
T: UnwindSafe,
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