Struct densevec::DenseVec
[−]
[src]
pub struct DenseVec<T> { /* fields omitted */ }
Methods
impl<T> DenseVec<T>
[src]
pub fn new() -> DenseVec<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>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, T>pub fn iter(&self) -> Iter<T>
[src]
ⓘImportant traits for IterMut<'a, T>pub fn iter_mut(&mut self) -> IterMut<T>
[src]
pub fn entry(&mut self, guid: usize) -> Entry<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: usize) -> Option<&T>
[src]
pub fn get_mut(&mut self, guid: usize) -> Option<&mut T>
[src]
pub unsafe fn get_unchecked(&self, guid: usize) -> &T
[src]
pub unsafe fn get_unchecked_mut(&mut self, guid: usize) -> &mut T
[src]
pub fn contains_key(&self, guid: usize) -> bool
[src]
pub fn insert(&mut self, guid: usize, t: T) -> Option<T>
[src]
pub fn remove(&mut self, guid: usize) -> Option<T>
[src]
Trait Implementations
impl<T: Clone> Clone for DenseVec<T>
[src]
fn clone(&self) -> DenseVec<T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T: Debug> Debug for DenseVec<T>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: PartialEq> PartialEq for DenseVec<T>
[src]
fn eq(&self, other: &DenseVec<T>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<T> IntoIterator for DenseVec<T>
[src]
type Item = (usize, T)
The type of the elements being iterated over.
type IntoIter = IntoIter<T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<T> FromIterator<(usize, T)> for DenseVec<T>
[src]
fn from_iter<I>(iter: I) -> DenseVec<T> where
I: IntoIterator<Item = (usize, T)>,
[src]
I: IntoIterator<Item = (usize, T)>,
Creates a value from an iterator. Read more
impl<'a, T> IntoIterator for &'a DenseVec<T>
[src]
type Item = (usize, &'a T)
The type of the elements being iterated over.
type IntoIter = Iter<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<'a, T> IntoIterator for &'a mut DenseVec<T>
[src]
type Item = (usize, &'a mut T)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, T>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
Creates an iterator from a value. Read more
impl<T> Default for DenseVec<T>
[src]
impl<T> Index<usize> for DenseVec<T>
[src]
type Output = T
The returned type after indexing.
fn index(&self, i: usize) -> &T
[src]
Performs the indexing (container[index]
) operation.
impl<T> IndexMut<usize> for DenseVec<T>
[src]
fn index_mut(&mut self, i: usize) -> &mut T
[src]
Performs the mutable indexing (container[index]
) operation.
impl<T> Extend<(usize, T)> for DenseVec<T>
[src]
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = (usize, T)>,
[src]
I: IntoIterator<Item = (usize, T)>,
Extends a collection with the contents of an iterator. Read more