Struct arret_runtime::boxed::Map [−][src]
Immutable map of boxed values
Implementations
impl<K: Boxed, V: Boxed> Map<K, V>
[src]
impl<K: Boxed, V: Boxed> Map<K, V>
[src]pub fn new(
heap: &mut impl AsHeap,
values: impl ExactSizeIterator<Item = (Gc<K>, Gc<V>)>
) -> Gc<Map<K, V>>
[src]
heap: &mut impl AsHeap,
values: impl ExactSizeIterator<Item = (Gc<K>, Gc<V>)>
) -> Gc<Map<K, V>>
Constructs a new map with the given values
pub fn from_values<T, F>(
heap: &mut impl AsHeap,
values: impl ExactSizeIterator<Item = T>,
_cons: F
) -> Gc<Map<K, V>> where
F: Fn(&mut Heap, T) -> (Gc<K>, Gc<V>),
[src]
heap: &mut impl AsHeap,
values: impl ExactSizeIterator<Item = T>,
_cons: F
) -> Gc<Map<K, V>> where
F: Fn(&mut Heap, T) -> (Gc<K>, Gc<V>),
Constructs a map by constructing an iterator of values
pub fn size() -> BoxSize
[src]
Returns the box size for maps
pub fn is_empty(&self) -> bool
[src]
Return if the map is empty
pub fn len(&self) -> usize
[src]
Returns the number of the entries in the map
pub fn iter(&self) -> impl Iterator<Item = (Gc<K>, Gc<V>)> + '_
[src]
Returns an iterator over the entries in map
Trait Implementations
impl<K: Boxed, V: Boxed> EncodeBoxedAbiType for Map<K, V> where
K: EncodeBoxedAbiType,
V: EncodeBoxedAbiType,
[src]
impl<K: Boxed, V: Boxed> EncodeBoxedAbiType for Map<K, V> where
K: EncodeBoxedAbiType,
V: EncodeBoxedAbiType,
[src]const BOXED_ABI_TYPE: BoxedAbiType
[src]
impl<K: Boxed, V: Boxed> HashInHeap for Map<K, V>
[src]
impl<K: Boxed, V: Boxed> HashInHeap for Map<K, V>
[src]fn hash_in_heap<H: Hasher>(&self, _heap: &Heap, state: &mut H)
[src]
impl<K: Boxed, V: Boxed> PartialEqInHeap for Map<K, V>
[src]
impl<K: Boxed, V: Boxed> PartialEqInHeap for Map<K, V>
[src]fn eq_in_heap(&self, _heap: &Heap, _other: &Map<K, V>) -> bool
[src]
Auto Trait Implementations
impl<K, V> RefUnwindSafe for Map<K, V> where
K: RefUnwindSafe,
V: RefUnwindSafe,
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for Map<K, V> where
K: Send,
V: Send,
K: Send,
V: Send,
impl<K, V> Sync for Map<K, V> where
K: Sync,
V: Sync,
K: Sync,
V: Sync,
impl<K, V> Unpin for Map<K, V> where
K: Unpin,
V: Unpin,
K: Unpin,
V: Unpin,
impl<K, V> UnwindSafe for Map<K, V> where
K: UnwindSafe,
V: UnwindSafe,
K: UnwindSafe,
V: UnwindSafe,