Struct ra_ap_la_arena::ArenaMap [−][src]
pub struct ArenaMap<IDX, V> { /* fields omitted */ }
Expand description
A map from arena indexes to some other type. Space requirement is O(highest index).
Implementations
Inserts a value associated with a given arena index into the map.
Returns a reference to the value associated with the provided index if it is present.
Returns a mutable reference to the value associated with the provided index if it is present.
Returns an iterator over the values in the map.
Returns an iterator over mutable references to the values in the map.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<IDX, V> RefUnwindSafe for ArenaMap<IDX, V> where
IDX: RefUnwindSafe,
V: RefUnwindSafe,
impl<IDX, V> UnwindSafe for ArenaMap<IDX, V> where
IDX: UnwindSafe,
V: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more