pub struct AVLMultiset<T>(/* private fields */);Implementations§
Source§impl<T: Ord> AVLMultiset<T>
impl<T: Ord> AVLMultiset<T>
pub fn new() -> Self
pub fn size(&self) -> usize
pub fn lower_bound(&self, value: &T) -> usize
pub fn upper_bound(&self, value: &T) -> usize
pub fn count(&self, value: &T) -> usize
pub fn contains(&self, value: &T) -> bool
pub fn insert(&mut self, value: T)
pub fn remove(&mut self, value: &T)
pub fn remove_all(&mut self, value: &T)
pub fn iter<'a>(&'a self) -> IntoIter<&'a T>
Trait Implementations§
Source§impl<T: Debug> Debug for AVLMultiset<T>
impl<T: Debug> Debug for AVLMultiset<T>
Auto Trait Implementations§
impl<T> Freeze for AVLMultiset<T>
impl<T> RefUnwindSafe for AVLMultiset<T>where
T: RefUnwindSafe,
impl<T> Send for AVLMultiset<T>where
T: Send,
impl<T> Sync for AVLMultiset<T>where
T: Sync,
impl<T> Unpin for AVLMultiset<T>
impl<T> UnwindSafe for AVLMultiset<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