pub struct BTreeIndexSet<S = u64> { /* private fields */ }Expand description
Index set backed by a BTreeMap.
Implementations§
Source§impl<S> BTreeIndexSet<S>
impl<S> BTreeIndexSet<S>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new BTreeIndexSet.
Sourcepub fn with_capacity(_capacity: usize) -> Self
pub fn with_capacity(_capacity: usize) -> Self
Create a new BTreeIndexSet with the given capacity.
§Warning
In the current implementation, this method is a stub.
It doesn’t actually provide any benefit over calling
BTreeIndexSet::new.
Trait Implementations§
Source§impl<S: Clone> Clone for BTreeIndexSet<S>
impl<S: Clone> Clone for BTreeIndexSet<S>
Source§fn clone(&self) -> BTreeIndexSet<S>
fn clone(&self) -> BTreeIndexSet<S>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<S: Debug> Debug for BTreeIndexSet<S>
impl<S: Debug> Debug for BTreeIndexSet<S>
Source§impl<S: Default> Default for BTreeIndexSet<S>
impl<S: Default> Default for BTreeIndexSet<S>
Source§fn default() -> BTreeIndexSet<S>
fn default() -> BTreeIndexSet<S>
Returns the “default value” for a type. Read more
Source§impl<S: Storage> Extend<usize> for BTreeIndexSet<S>
impl<S: Storage> Extend<usize> for BTreeIndexSet<S>
Source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = usize>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = usize>,
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<S: Storage> From<&BTreeIndexSet<S>> for BTreeSet<usize>
impl<S: Storage> From<&BTreeIndexSet<S>> for BTreeSet<usize>
Source§fn from(index_set: &BTreeIndexSet<S>) -> Self
fn from(index_set: &BTreeIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> From<&BTreeIndexSet<S>> for Vec<usize>
impl<S: Storage> From<&BTreeIndexSet<S>> for Vec<usize>
Source§fn from(index_set: &BTreeIndexSet<S>) -> Self
fn from(index_set: &BTreeIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> From<BTreeIndexSet<S>> for BTreeSet<usize>
impl<S: Storage> From<BTreeIndexSet<S>> for BTreeSet<usize>
Source§fn from(index_set: BTreeIndexSet<S>) -> Self
fn from(index_set: BTreeIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> From<BTreeIndexSet<S>> for Vec<usize>
impl<S: Storage> From<BTreeIndexSet<S>> for Vec<usize>
Source§fn from(index_set: BTreeIndexSet<S>) -> Self
fn from(index_set: BTreeIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<I, S> From<I> for BTreeIndexSet<S>where
I: IntoIterator<Item = usize>,
S: Storage,
impl<I, S> From<I> for BTreeIndexSet<S>where
I: IntoIterator<Item = usize>,
S: Storage,
Source§impl<S: Storage> FromIterator<usize> for BTreeIndexSet<S>
impl<S: Storage> FromIterator<usize> for BTreeIndexSet<S>
Source§impl<S: Hash> Hash for BTreeIndexSet<S>
impl<S: Hash> Hash for BTreeIndexSet<S>
Source§impl<S: Storage> IndexSet for BTreeIndexSet<S>
impl<S: Storage> IndexSet for BTreeIndexSet<S>
Source§impl<S: Ord> Ord for BTreeIndexSet<S>
impl<S: Ord> Ord for BTreeIndexSet<S>
Source§fn cmp(&self, other: &BTreeIndexSet<S>) -> Ordering
fn cmp(&self, other: &BTreeIndexSet<S>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<S: PartialEq> PartialEq for BTreeIndexSet<S>
impl<S: PartialEq> PartialEq for BTreeIndexSet<S>
Source§impl<S: PartialOrd> PartialOrd for BTreeIndexSet<S>
impl<S: PartialOrd> PartialOrd for BTreeIndexSet<S>
impl<S: Eq> Eq for BTreeIndexSet<S>
impl<S> StructuralPartialEq for BTreeIndexSet<S>
Auto Trait Implementations§
impl<S> Freeze for BTreeIndexSet<S>
impl<S> RefUnwindSafe for BTreeIndexSet<S>where
S: RefUnwindSafe,
impl<S> Send for BTreeIndexSet<S>where
S: Send,
impl<S> Sync for BTreeIndexSet<S>where
S: Sync,
impl<S> Unpin for BTreeIndexSet<S>
impl<S> UnwindSafe for BTreeIndexSet<S>where
S: 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