Struct densevec::KeyedDenseVec [−][src]
pub struct KeyedDenseVec<K, T> { /* fields omitted */ }
Implementations
impl<K: Key, T> KeyedDenseVec<K, T>
[src]
impl<K: Key, T> KeyedDenseVec<K, T>
[src]pub fn new() -> KeyedDenseVec<K, T>
[src]
pub fn with_capacity(capacity: usize) -> Self
[src]
pub fn capacity(&self) -> usize
[src]
pub fn reserve(&mut self, additional: usize)
[src]
pub fn reserve_exact(&mut self, additional: usize)
[src]
pub fn shrink_to_fit(&mut self)
[src]
pub fn keys(&self) -> Keys<'_, K>ⓘ
[src]
pub fn values(&self) -> Values<'_, T>ⓘ
[src]
pub fn values_mut(&mut self) -> ValuesMut<'_, T>ⓘ
[src]
pub fn iter(&self) -> Iter<'_, K, T>ⓘ
[src]
pub fn iter_mut(&mut self) -> IterMut<'_, K, T>ⓘ
[src]
pub fn fast_ids_iter(&self) -> FastIter<'_, T>ⓘ
[src]
pub fn fast_ids_iter_mut(&mut self) -> FastIterMut<'_, T>ⓘNotable traits for FastIterMut<'a, T>
impl<'a, T: 'a> Iterator for FastIterMut<'a, T> type Item = (usize, &'a mut T);
[src]
Notable traits for FastIterMut<'a, T>
impl<'a, T: 'a> Iterator for FastIterMut<'a, T> type Item = (usize, &'a mut T);
pub fn entry(&mut self, guid: K) -> Entry<'_, K, T>
[src]
pub fn len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn clear(&mut self)
[src]
pub fn get(&self, guid: K) -> Option<&T>
[src]
pub fn get_mut(&mut self, guid: K) -> Option<&mut T>
[src]
pub unsafe fn get_unchecked(&self, guid: K) -> &T
[src]
pub unsafe fn get_unchecked_mut(&mut self, guid: K) -> &mut T
[src]
pub fn get_fast(&self, idx: FastIndex) -> Option<&T>
[src]
pub fn get_fast_mut(&mut self, idx: FastIndex) -> Option<&mut T>
[src]
pub unsafe fn get_fast_unchecked(&self, idx: FastIndex) -> &T
[src]
pub unsafe fn get_fast_unchecked_mut(&mut self, idx: FastIndex) -> &mut T
[src]
pub fn contains_key(&self, guid: K) -> bool
[src]
pub fn insert(&mut self, guid: K, t: T) -> Option<T>
[src]
pub fn insert_fast_index(&mut self, guid: K, t: T) -> (Option<T>, FastIndex)
[src]
pub fn remove(&mut self, guid: K) -> Option<T>
[src]
pub fn insert_key_gen(&mut self, value: T) -> K
[src]
pub fn insert_fast_index_key_gen(&mut self, value: T) -> (K, FastIndex)
[src]
pub fn swap(&mut self, guid1: K, guid2: K)
[src]
pub fn fast_index_for(&self, guid: K) -> Option<FastIndex>
[src]
pub unsafe fn fast_index_unchecked_for(&self, guid: K) -> FastIndex
[src]
pub fn guid_from_fast_index(&self, idx: usize) -> Option<K>
[src]
pub unsafe fn unchecked_guid_from_fast_index(&self, idx: usize) -> K
[src]
impl<K, T: Sync> KeyedDenseVec<K, T>
[src]
impl<K, T: Sync> KeyedDenseVec<K, T>
[src]pub fn par_values(&self) -> ParValues<'_, T>
[src]
impl<K: Key + Send + Sync, T: Sync> KeyedDenseVec<K, T>
[src]
impl<K: Key + Send + Sync, T: Sync> KeyedDenseVec<K, T>
[src]impl<K, T: Send> KeyedDenseVec<K, T>
[src]
impl<K, T: Send> KeyedDenseVec<K, T>
[src]pub fn par_values_mut(&mut self) -> ParValuesMut<'_, T>
[src]
impl<K: Key + Send + Sync, T: Send + Sync> KeyedDenseVec<K, T>
[src]
impl<K: Key + Send + Sync, T: Send + Sync> KeyedDenseVec<K, T>
[src]pub fn par_iter_mut(&mut self) -> impl ParallelIterator<Item = (K, &mut T)> + '_
[src]
Trait Implementations
impl<K, T: Clone> Clone for KeyedDenseVec<K, T>
[src]
impl<K, T: Clone> Clone for KeyedDenseVec<K, T>
[src]fn clone(&self) -> KeyedDenseVec<K, T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<K: Key, T> Default for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Default for KeyedDenseVec<K, T>
[src]fn default() -> KeyedDenseVec<K, T>
[src]
impl<'a, K: Key, T: 'a + Copy> Extend<(K, &'a T)> for KeyedDenseVec<K, T>
[src]
impl<'a, K: Key, T: 'a + Copy> Extend<(K, &'a T)> for KeyedDenseVec<K, T>
[src]fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = (K, &'a T)>,
[src]
I: IntoIterator<Item = (K, &'a T)>,
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl<K: Key, T> Extend<(K, T)> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Extend<(K, T)> for KeyedDenseVec<K, T>
[src]fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = (K, T)>,
[src]
I: IntoIterator<Item = (K, T)>,
pub fn extend_one(&mut self, item: A)
[src]
pub fn extend_reserve(&mut self, additional: usize)
[src]
impl<K: Key, T> FromIterator<(K, T)> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> FromIterator<(K, T)> for KeyedDenseVec<K, T>
[src]fn from_iter<I>(iter: I) -> KeyedDenseVec<K, T> where
I: IntoIterator<Item = (K, T)>,
[src]
I: IntoIterator<Item = (K, T)>,
impl<K: Key + Send, T: Send> FromParallelIterator<(K, T)> for KeyedDenseVec<K, T>
[src]
impl<K: Key + Send, T: Send> FromParallelIterator<(K, T)> for KeyedDenseVec<K, T>
[src]fn from_par_iter<I>(par_iter: I) -> Self where
I: IntoParallelIterator<Item = (K, T)>,
[src]
I: IntoParallelIterator<Item = (K, T)>,
impl<K: Key, T> Index<K> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Index<K> for KeyedDenseVec<K, T>
[src]impl<K: Key, T> IndexMut<K> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> IndexMut<K> for KeyedDenseVec<K, T>
[src]impl<K: Key, T> IntoIterator for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> IntoIterator for KeyedDenseVec<K, T>
[src]impl<'a, K: Key, T> IntoIterator for &'a KeyedDenseVec<K, T>
[src]
impl<'a, K: Key, T> IntoIterator for &'a KeyedDenseVec<K, T>
[src]impl<'a, K: Key, T> IntoIterator for &'a mut KeyedDenseVec<K, T>
[src]
impl<'a, K: Key, T> IntoIterator for &'a mut KeyedDenseVec<K, T>
[src]impl<K: Key, T: PartialEq> PartialEq<KeyedDenseVec<K, T>> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T: PartialEq> PartialEq<KeyedDenseVec<K, T>> for KeyedDenseVec<K, T>
[src]impl<K: Key, T: Eq> Eq for KeyedDenseVec<K, T>
[src]
Auto Trait Implementations
impl<K, T> RefUnwindSafe for KeyedDenseVec<K, T> where
K: RefUnwindSafe,
T: RefUnwindSafe,
K: RefUnwindSafe,
T: RefUnwindSafe,
impl<K, T> Send for KeyedDenseVec<K, T> where
K: Send,
T: Send,
K: Send,
T: Send,
impl<K, T> Sync for KeyedDenseVec<K, T> where
K: Sync,
T: Sync,
K: Sync,
T: Sync,
impl<K, T> Unpin for KeyedDenseVec<K, T> where
K: Unpin,
T: Unpin,
K: Unpin,
T: Unpin,
impl<K, T> UnwindSafe for KeyedDenseVec<K, T> where
K: UnwindSafe,
T: UnwindSafe,
K: UnwindSafe,
T: UnwindSafe,