[−][src]Struct compact_arena::Idx
An index into the arena. You will not directly use this type, but one of
the aliases this crate provides (Idx32
, Idx16
or Idx8
).
The only way to get an index into an arena is to add
a value to it. With
an Idx
you can index or mutably index into the arena to observe or mutate
the value.
Trait Implementations
impl<I: Copy + Clone, B> Clone for Idx<I, B>
[src]
fn clone(&self) -> Self
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: Eq + Copy + Clone, B: Eq> Eq for Idx<I, B>
[src]
impl<I: PartialOrd + Copy + Clone, B: PartialOrd> PartialOrd<Idx<I, B>> for Idx<I, B>
[src]
fn partial_cmp(&self, other: &Idx<I, B>) -> Option<Ordering>
[src]
fn lt(&self, other: &Idx<I, B>) -> bool
[src]
fn le(&self, other: &Idx<I, B>) -> bool
[src]
fn gt(&self, other: &Idx<I, B>) -> bool
[src]
fn ge(&self, other: &Idx<I, B>) -> bool
[src]
impl<I: Copy + Clone, B> Copy for Idx<I, B>
[src]
impl<I: PartialEq + Copy + Clone, B: PartialEq> PartialEq<Idx<I, B>> for Idx<I, B>
[src]
impl<B, T> Index<Idx<u32, B>> for SmallArena<T, B>
[src]
type Output = T
The returned type after indexing.
fn index(&self, i: Idx32<B>) -> &T
[src]
Gets an immutable reference to the value at this index.
impl<T, B> Index<Idx<u16, B>> for TinyArena<T, B>
[src]
impl<T, B> Index<Idx<u8, B>> for NanoArena<T, B>
[src]
impl<B, T> IndexMut<Idx<u32, B>> for SmallArena<T, B>
[src]
fn index_mut(&mut self, i: Idx32<B>) -> &mut T
[src]
Gets a mutable reference to the value at this index.
impl<T, B> IndexMut<Idx<u16, B>> for TinyArena<T, B>
[src]
impl<T, B> IndexMut<Idx<u8, B>> for NanoArena<T, B>
[src]
Auto Trait Implementations
impl<I, B> Send for Idx<I, B> where
B: Send,
I: Send,
B: Send,
I: Send,
impl<I, B> Sync for Idx<I, B> where
B: Sync,
I: Sync,
B: Sync,
I: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
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]
T: 'static + ?Sized,