[−][src]Trait heaparray::CopyMap
Trait for a container indexed by a value that implements Copy
and Eq
.
Required methods
fn get(&'a self, key: K) -> Option<R>
Get a value from this Map. Takes a key by reference
and returns a reference to the corresponding data,
or None
if none exists.
fn get_mut(&'a mut self, key: K) -> Option<Rm>
Returns a mutable reference to an object stored in
this container based on the key given, or None
if
the key does not exist.
fn insert(&mut self, k: K, v: V) -> Option<V>
Adds a new item into this container with the associated key, and returns the previous value associated with that key, if it existed.
Implementors
impl<'a, A, R, B: ?Sized, E, L> CopyMap<'a, usize, E, (usize, E), &'a E, &'a mut E> for RcArray<'a, A, R, B, E, L> where
A: 'a + LabelledArray<'a, E, R> + BaseArrayRef + UnsafeArrayRef<'a, B>,
R: 'a + RefCounter<L>,
L: 'a,
E: 'a,
B: 'a,
[src]
A: 'a + LabelledArray<'a, E, R> + BaseArrayRef + UnsafeArrayRef<'a, B>,
R: 'a + RefCounter<L>,
L: 'a,
E: 'a,
B: 'a,
fn get(&'a self, key: usize) -> Option<&'a E>
[src]
fn get_mut(&'a mut self, key: usize) -> Option<&'a mut E>
[src]
fn insert(&mut self, key: usize, value: E) -> Option<E>
[src]
impl<'a, E, L> CopyMap<'a, usize, E, (usize, E), &'a E, &'a mut E> for FatPtrArray<'a, E, L> where
E: 'a,
[src]
E: 'a,