[−][src]Struct wasmer_runtime_core::structures::Map
Dense item map
Methods
impl<K, V> Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> Map<K, V> where
K: TypedIndex,
pub fn new() -> Self | [src] |
pub fn with_capacity(capacity: usize) -> Self | [src] |
pub fn len(&self) -> usize | [src] |
pub fn push(&mut self, value: V) -> K | [src] |
pub fn next_index(&self) -> K | [src] |
pub fn reserve_exact(&mut self, size: usize) | [src] |
pub fn into_boxed_map(self) -> BoxedMap<K, V> | [src] |
impl<K, V> Map<K, V> where
K: TypedIndex,
V: Clone,
[src]
impl<K, V> Map<K, V> where
K: TypedIndex,
V: Clone,
Methods from Deref<Target = SliceMap<K, V>>
pub fn get(&self, index: K) -> Option<&V> | [src] |
pub fn get_mut(&mut self, index: K) -> Option<&mut V> | [src] |
pub fn len(&self) -> usize | [src] |
ⓘImportant traits for Iter<'a, K, V>
ⓘImportant traits for Iter<'a, K, V>
pub fn iter(&self) -> Iter<K, V> | [src] |
ⓘImportant traits for IterMut<'a, K, V>
ⓘImportant traits for IterMut<'a, K, V>
pub fn iter_mut(&mut self) -> IterMut<K, V> | [src] |
pub fn as_ptr(&self) -> *const V | [src] |
pub fn as_mut_ptr(&mut self) -> *mut V | [src] |
Trait Implementations
impl<K, V> IntoIterator for Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> IntoIterator for Map<K, V> where
K: TypedIndex,
type Item = (K, V)
The type of the elements being iterated over.
type IntoIter = IntoIter<K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a, K, V> IntoIterator for &'a Map<K, V> where
K: TypedIndex,
[src]
impl<'a, K, V> IntoIterator for &'a Map<K, V> where
K: TypedIndex,
type Item = (K, &'a V)
The type of the elements being iterated over.
type IntoIter = Iter<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<'a, K, V> IntoIterator for &'a mut Map<K, V> where
K: TypedIndex,
[src]
impl<'a, K, V> IntoIterator for &'a mut Map<K, V> where
K: TypedIndex,
type Item = (K, &'a mut V)
The type of the elements being iterated over.
type IntoIter = IterMut<'a, K, V>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter | [src] |
impl<K, V> Extend<V> for Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> Extend<V> for Map<K, V> where
K: TypedIndex,
fn extend<I: IntoIterator<Item = V>>(&mut self, iter: I) | [src] |
impl<K: Clone, V: Clone> Clone for Map<K, V> where
K: TypedIndex,
[src]
impl<K: Clone, V: Clone> Clone for Map<K, V> where
K: TypedIndex,
fn clone(&self) -> Map<K, V> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<K: Debug, V: Debug> Debug for Map<K, V> where
K: TypedIndex,
[src]
impl<K: Debug, V: Debug> Debug for Map<K, V> where
K: TypedIndex,
impl<K, V> DerefMut for Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> DerefMut for Map<K, V> where
K: TypedIndex,
impl<K, V> Deref for Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> Deref for Map<K, V> where
K: TypedIndex,
type Target = SliceMap<K, V>
The resulting type after dereferencing.
fn deref(&self) -> &SliceMap<K, V> | [src] |
impl<K, V> FromIterator<V> for Map<K, V> where
K: TypedIndex,
[src]
impl<K, V> FromIterator<V> for Map<K, V> where
K: TypedIndex,
fn from_iter<I: IntoIterator<Item = V>>(iter: I) -> Self | [src] |
Auto Trait Implementations
impl<K, V> Send for Map<K, V> where
K: Send,
V: Send,
impl<K, V> Send for Map<K, V> where
K: Send,
V: Send,
impl<K, V> Sync for Map<K, V> where
K: Sync,
V: Sync,
impl<K, V> Sync for Map<K, V> where
K: Sync,
V: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for 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, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
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> 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>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
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] |