pub struct BTreeSet<'store, T> { /* private fields */ }Expand description
A copyable, immutable b-tree set, which doesn’t drop its contents.
Implementations§
Source§impl<'store, T> BTreeSet<'store, T>
impl<'store, T> BTreeSet<'store, T>
Sourcepub fn contains<U: Ord>(&self, value: &U) -> boolwhere
T: Borrow<U>,
pub fn contains<U: Ord>(&self, value: &U) -> boolwhere
T: Borrow<U>,
Returns true if the set contains a value.
Sourcepub fn get<U: Ord>(&self, value: &U) -> Option<&T>where
T: Borrow<U>,
pub fn get<U: Ord>(&self, value: &U) -> Option<&T>where
T: Borrow<U>,
Returns a reference to the equivalent value in the set, if any.
This is (only) useful when U is a different type than T.
Trait Implementations§
Source§impl<'a, 'store: 'a, T> IntoIterator for &'a BTreeSet<'store, T>
impl<'a, 'store: 'a, T> IntoIterator for &'a BTreeSet<'store, T>
Source§impl<'store, T: Ord> Ord for BTreeSet<'store, T>
impl<'store, T: Ord> Ord for BTreeSet<'store, T>
Source§impl<'store, T: PartialOrd> PartialOrd for BTreeSet<'store, T>
impl<'store, T: PartialOrd> PartialOrd for BTreeSet<'store, T>
impl<'store, T> Copy for BTreeSet<'store, T>
impl<'store, T: Eq> Eq for BTreeSet<'store, T>
Auto Trait Implementations§
impl<'store, T> Freeze for BTreeSet<'store, T>
impl<'store, T> RefUnwindSafe for BTreeSet<'store, T>where
T: RefUnwindSafe,
impl<'store, T> Send for BTreeSet<'store, T>where
T: Sync,
impl<'store, T> Sync for BTreeSet<'store, T>where
T: Sync,
impl<'store, T> Unpin for BTreeSet<'store, T>
impl<'store, T> UnwindSafe for BTreeSet<'store, T>where
T: RefUnwindSafe,
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