pub struct AvlTree<T: Ord> { /* private fields */ }Expand description
An AVL self-balancing binary search tree.
All operations (insert, contains) run in O(log n) worst-case time. The height is always ≤ 1.44 * log2(n + 2).
Implementations§
Trait Implementations§
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> UnsafeUnpin 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