[−][src]Struct ra_ap_arena::map::ArenaMap
A map from arena IDs to some other type. Space requirement is O(highest ID).
Implementations
impl<T, V> ArenaMap<Idx<T>, V>
[src]
pub fn insert(&mut self, id: Idx<T>, t: V)
[src]
pub fn get(&self, id: Idx<T>) -> Option<&V>
[src]
pub fn get_mut(&mut self, id: Idx<T>) -> Option<&mut V>
[src]
pub fn values(&self) -> impl Iterator<Item = &V>
[src]
pub fn values_mut(&mut self) -> impl Iterator<Item = &mut V>
[src]
pub fn iter(&self) -> impl Iterator<Item = (Idx<T>, &V)>
[src]
Trait Implementations
impl<ID: Clone, V: Clone> Clone for ArenaMap<ID, V>
[src]
impl<ID: Debug, V: Debug> Debug for ArenaMap<ID, V>
[src]
impl<T, V> Default for ArenaMap<Idx<V>, T>
[src]
impl<ID: Eq, V: Eq> Eq for ArenaMap<ID, V>
[src]
impl<ID: Hash, V: Hash> Hash for ArenaMap<ID, V>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T, V> Index<Idx<V>> for ArenaMap<Idx<V>, T>
[src]
impl<ID: Ord, V: Ord> Ord for ArenaMap<ID, V>
[src]
fn cmp(&self, other: &ArenaMap<ID, V>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<ID: PartialEq, V: PartialEq> PartialEq<ArenaMap<ID, V>> for ArenaMap<ID, V>
[src]
fn eq(&self, other: &ArenaMap<ID, V>) -> bool
[src]
fn ne(&self, other: &ArenaMap<ID, V>) -> bool
[src]
impl<ID: PartialOrd, V: PartialOrd> PartialOrd<ArenaMap<ID, V>> for ArenaMap<ID, V>
[src]
fn partial_cmp(&self, other: &ArenaMap<ID, V>) -> Option<Ordering>
[src]
fn lt(&self, other: &ArenaMap<ID, V>) -> bool
[src]
fn le(&self, other: &ArenaMap<ID, V>) -> bool
[src]
fn gt(&self, other: &ArenaMap<ID, V>) -> bool
[src]
fn ge(&self, other: &ArenaMap<ID, V>) -> bool
[src]
impl<ID, V> StructuralEq for ArenaMap<ID, V>
[src]
impl<ID, V> StructuralPartialEq for ArenaMap<ID, V>
[src]
Auto Trait Implementations
impl<ID, V> RefUnwindSafe for ArenaMap<ID, V> where
ID: RefUnwindSafe,
V: RefUnwindSafe,
ID: RefUnwindSafe,
V: RefUnwindSafe,
impl<ID, V> Send for ArenaMap<ID, V> where
ID: Send,
V: Send,
ID: Send,
V: Send,
impl<ID, V> Sync for ArenaMap<ID, V> where
ID: Sync,
V: Sync,
ID: Sync,
V: Sync,
impl<ID, V> Unpin for ArenaMap<ID, V> where
ID: Unpin,
V: Unpin,
ID: Unpin,
V: Unpin,
impl<ID, V> UnwindSafe for ArenaMap<ID, V> where
ID: UnwindSafe,
V: UnwindSafe,
ID: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,