[−][src]Struct densevec::KeyedDenseVec
Methods
impl<K: Key, T> KeyedDenseVec<K, T>
[src]
impl<K: Key, T> KeyedDenseVec<K, T>
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] |
ⓘImportant traits for Keys<'a>
ⓘImportant traits for Keys<'a>
pub fn keys(&self) -> Keys | [src] |
pub fn values(&self) -> Iter<T> | [src] |
pub fn values_mut(&mut self) -> IterMut<T> | [src] |
ⓘImportant traits for Iter<'a, K, T>
ⓘImportant traits for Iter<'a, K, T>
pub fn iter(&self) -> Iter<K, T> | [src] |
ⓘImportant traits for IterMut<'a, K, T>
ⓘImportant traits for IterMut<'a, K, T>
pub fn iter_mut(&mut self) -> IterMut<K, T> | [src] |
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 contains_key(&self, guid: K) -> bool | [src] |
pub fn insert(&mut self, guid: K, t: T) -> Option<T> | [src] |
pub fn remove(&mut self, guid: K) -> Option<T> | [src] |
pub fn insert_key_gen(&mut self, value: T) -> K | [src] |
pub fn swap(&mut self, guid1: K, guid2: K) | [src] |
Trait Implementations
impl<K: Clone, T: Clone> Clone for KeyedDenseVec<K, T>
[src]
impl<K: Clone, T: Clone> Clone for KeyedDenseVec<K, T>
fn clone(&self) -> KeyedDenseVec<K, T> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
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>
fn eq(&self, other: &KeyedDenseVec<K, T>) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<K: Key, T> Default for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Default for KeyedDenseVec<K, T>
fn default() -> KeyedDenseVec<K, T> | [src] |
impl<K: Key, T> IntoIterator for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> IntoIterator for KeyedDenseVec<K, T>
type Item = (usize, T)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a, K: Key, T> IntoIterator for &'a KeyedDenseVec<K, T>
[src]
impl<'a, K: Key, T> IntoIterator for &'a KeyedDenseVec<K, T>
type Item = (K, &'a T)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [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>
type Item = (K, &'a mut T)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, K, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<K: Key, T> Extend<(K, T)> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Extend<(K, T)> for KeyedDenseVec<K, T>
fn extend<I>(&mut self, iter: I) where | [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>
impl<K: Key + Debug, T: Debug> Debug for KeyedDenseVec<K, T>
[src]
impl<K: Key + Debug, T: Debug> Debug for KeyedDenseVec<K, T>
impl<K: Key, T> Index<K> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> Index<K> for KeyedDenseVec<K, T>
impl<K: Key, T> IndexMut<K> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> IndexMut<K> for KeyedDenseVec<K, T>
impl<K: Key, T> FromIterator<(K, T)> for KeyedDenseVec<K, T>
[src]
impl<K: Key, T> FromIterator<(K, T)> for KeyedDenseVec<K, T>
fn from_iter<I>(iter: I) -> KeyedDenseVec<K, T> where | [src] |
Auto Trait Implementations
impl<K, T> Send for KeyedDenseVec<K, T> where
K: Send,
T: Send,
impl<K, T> Send for KeyedDenseVec<K, T> where
K: Send,
T: Send,
impl<K, T> Sync for KeyedDenseVec<K, T> where
K: Sync,
T: Sync,
impl<K, T> Sync for KeyedDenseVec<K, T> where
K: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
impl<I> IntoIterator for I where
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I | [src] |
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,