pub struct IndexSet<K, S = RandomState> { /* private fields */ }Implementations§
Source§impl<K, S> IndexSet<K, S>
impl<K, S> IndexSet<K, S>
pub fn with_hasher(hash_builder: S) -> Self
pub fn new() -> Selfwhere
S: Default,
pub fn with_capacity(capacity: usize) -> Selfwhere
S: Default,
pub fn with_hasher_capacity(hash_builder: S, capacity: usize) -> Self
pub fn contains_key<Q>(&self, key: &Q) -> bool
pub fn len(&self) -> usize
pub fn get_index<Q>(&self, key: &Q) -> Option<usize>
pub fn iter(&self) -> Iter<'_, K>
pub fn keys(&self) -> &Vec<K>
pub fn get_with_index(&self, index: usize) -> Option<&K>
Trait Implementations§
Auto Trait Implementations§
impl<K, S> Freeze for IndexSet<K, S>where
S: Freeze,
impl<K, S> RefUnwindSafe for IndexSet<K, S>where
S: RefUnwindSafe,
K: RefUnwindSafe,
impl<K, S> Send for IndexSet<K, S>
impl<K, S> Sync for IndexSet<K, S>
impl<K, S> Unpin for IndexSet<K, S>
impl<K, S> UnwindSafe for IndexSet<K, S>where
S: UnwindSafe,
K: 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