pub struct SplaySet<T, C>{ /* private fields */ }
Implementations§
Source§impl<T, C> SplaySet<T, C>
impl<T, C> SplaySet<T, C>
pub fn new(comparator: C) -> SplaySet<T, C>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn contains(&self, t: &T) -> bool
pub fn find(&self, t: &T) -> Option<&T>
pub fn next(&self, t: &T) -> Option<&T>
pub fn prev(&self, t: &T) -> Option<&T>
pub fn insert(&mut self, t: T) -> bool
pub fn remove(&mut self, t: &T) -> bool
pub fn min(&self) -> Option<&T>
pub fn max(&self) -> Option<&T>
Trait Implementations§
Source§impl<T, C> Extend<T> for SplaySet<T, C>
impl<T, C> Extend<T> for SplaySet<T, C>
Source§fn extend<I: IntoIterator<Item = T>>(&mut self, i: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, i: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl<T, C> IntoIterator for SplaySet<T, C>
impl<T, C> IntoIterator for SplaySet<T, C>
Auto Trait Implementations§
impl<T, C> !Freeze for SplaySet<T, C>
impl<T, C> !RefUnwindSafe for SplaySet<T, C>
impl<T, C> Send for SplaySet<T, C>
impl<T, C> !Sync for SplaySet<T, C>
impl<T, C> Unpin for SplaySet<T, C>where
C: Unpin,
impl<T, C> UnwindSafe for SplaySet<T, C>where
C: UnwindSafe,
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