pub struct MinAugmentation;Expand description
Augmentation that tracks the minimum value in each subtree.
§Examples
use augmented_rbtree::{AugmentedRBTree, augmentations::MinAugmentation};
let mut tree = AugmentedRBTree::<i32, i32, MinAugmentation>::new();
tree.insert(1, 5);
tree.insert(2, 1);
tree.insert(3, 8);
assert_eq!(tree.root_stats(), Some(&Some(1)));Trait Implementations§
Source§impl<K, V> Augment<K, V> for MinAugmentation
impl<K, V> Augment<K, V> for MinAugmentation
Auto Trait Implementations§
impl Freeze for MinAugmentation
impl RefUnwindSafe for MinAugmentation
impl Send for MinAugmentation
impl Sync for MinAugmentation
impl Unpin for MinAugmentation
impl UnsafeUnpin for MinAugmentation
impl UnwindSafe for MinAugmentation
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