pub struct VecIndexSet<S = u64> { /* private fields */ }Expand description
Index set backed by a Vec.
Implementations§
Source§impl<S> VecIndexSet<S>
impl<S> VecIndexSet<S>
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Create a new VecIndexSet.
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Create a new VecIndexSet with the given capacity.
Trait Implementations§
Source§impl<S: Clone> Clone for VecIndexSet<S>
impl<S: Clone> Clone for VecIndexSet<S>
Source§fn clone(&self) -> VecIndexSet<S>
fn clone(&self) -> VecIndexSet<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 VecIndexSet<S>
impl<S: Debug> Debug for VecIndexSet<S>
Source§impl<S: Default> Default for VecIndexSet<S>
impl<S: Default> Default for VecIndexSet<S>
Source§fn default() -> VecIndexSet<S>
fn default() -> VecIndexSet<S>
Returns the “default value” for a type. Read more
Source§impl<S: Storage> Extend<usize> for VecIndexSet<S>
impl<S: Storage> Extend<usize> for VecIndexSet<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<&VecIndexSet<S>> for BTreeSet<usize>
impl<S: Storage> From<&VecIndexSet<S>> for BTreeSet<usize>
Source§fn from(index_set: &VecIndexSet<S>) -> Self
fn from(index_set: &VecIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> From<&VecIndexSet<S>> for Vec<usize>
impl<S: Storage> From<&VecIndexSet<S>> for Vec<usize>
Source§fn from(index_set: &VecIndexSet<S>) -> Self
fn from(index_set: &VecIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<I, S> From<I> for VecIndexSet<S>where
I: IntoIterator<Item = usize>,
S: Storage,
impl<I, S> From<I> for VecIndexSet<S>where
I: IntoIterator<Item = usize>,
S: Storage,
Source§impl<S: Storage> From<VecIndexSet<S>> for BTreeSet<usize>
impl<S: Storage> From<VecIndexSet<S>> for BTreeSet<usize>
Source§fn from(index_set: VecIndexSet<S>) -> Self
fn from(index_set: VecIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> From<VecIndexSet<S>> for Vec<usize>
impl<S: Storage> From<VecIndexSet<S>> for Vec<usize>
Source§fn from(index_set: VecIndexSet<S>) -> Self
fn from(index_set: VecIndexSet<S>) -> Self
Converts to this type from the input type.
Source§impl<S: Storage> FromIterator<usize> for VecIndexSet<S>
impl<S: Storage> FromIterator<usize> for VecIndexSet<S>
Source§impl<S: Hash> Hash for VecIndexSet<S>
impl<S: Hash> Hash for VecIndexSet<S>
Source§impl<S: Storage> IndexSet for VecIndexSet<S>
impl<S: Storage> IndexSet for VecIndexSet<S>
Source§impl<S: Ord> Ord for VecIndexSet<S>
impl<S: Ord> Ord for VecIndexSet<S>
Source§fn cmp(&self, other: &VecIndexSet<S>) -> Ordering
fn cmp(&self, other: &VecIndexSet<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 VecIndexSet<S>
impl<S: PartialEq> PartialEq for VecIndexSet<S>
Source§impl<S: PartialOrd> PartialOrd for VecIndexSet<S>
impl<S: PartialOrd> PartialOrd for VecIndexSet<S>
impl<S: Eq> Eq for VecIndexSet<S>
impl<S> StructuralPartialEq for VecIndexSet<S>
Auto Trait Implementations§
impl<S> Freeze for VecIndexSet<S>
impl<S> RefUnwindSafe for VecIndexSet<S>where
S: RefUnwindSafe,
impl<S> Send for VecIndexSet<S>where
S: Send,
impl<S> Sync for VecIndexSet<S>where
S: Sync,
impl<S> Unpin for VecIndexSet<S>where
S: Unpin,
impl<S> UnwindSafe for VecIndexSet<S>where
S: 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