[][src]Struct wasmer_runtime_core::structures::SliceMap

pub struct SliceMap<K, V> where
    K: TypedIndex
{ /* fields omitted */ }

This is a dynamically-sized slice that can only be indexed by the correct index type.

Methods

impl<K, V> SliceMap<K, V> where
    K: TypedIndex
[src]

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>
pub fn iter(&self) -> Iter<K, V>
[src]

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: Debug, V: Debug> Debug for SliceMap<K, V> where
    K: TypedIndex
[src]

impl<K, V> Index<K> for SliceMap<K, V> where
    K: TypedIndex
[src]

type Output = V

The returned type after indexing.

impl<K, V> IndexMut<K> for SliceMap<K, V> where
    K: TypedIndex
[src]

Auto Trait Implementations

impl<K, V> Send for SliceMap<K, V> where
    K: Send,
    V: Send

impl<K, V> Sync for SliceMap<K, V> where
    K: Sync,
    V: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T> Any for T where
    T: 'static + ?Sized
[src]