[−][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<'tag, I: Copy + Copy + Clone> Copy for Idx<'tag, I>
[src]
impl<'tag, I: PartialOrd + Copy + Clone> PartialOrd<Idx<'tag, I>> for Idx<'tag, I>
[src]
fn partial_cmp(&self, other: &Idx<'tag, I>) -> Option<Ordering>
[src]
fn lt(&self, other: &Idx<'tag, I>) -> bool
[src]
fn le(&self, other: &Idx<'tag, I>) -> bool
[src]
fn gt(&self, other: &Idx<'tag, I>) -> bool
[src]
fn ge(&self, other: &Idx<'tag, I>) -> bool
[src]
impl<'tag, I: PartialEq + Copy + Clone> PartialEq<Idx<'tag, I>> for Idx<'tag, I>
[src]
impl<'tag, I: Clone + Copy + Clone> Clone for Idx<'tag, I>
[src]
fn clone(&self) -> Idx<'tag, I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'tag, I: Eq + Copy + Clone> Eq for Idx<'tag, I>
[src]
impl<'tag, T> Index<Idx<'tag, u32>> for SmallArena<'tag, T>
[src]
type Output = T
The returned type after indexing.
fn index(&self, i: Idx32<'tag>) -> &T
[src]
Gets an immutable reference to the value at this index.
impl<'tag, T> Index<Idx<'tag, u16>> for TinyArena<'tag, T>
[src]
impl<'tag, T> Index<Idx<'tag, u8>> for NanoArena<'tag, T>
[src]
impl<'tag, T> IndexMut<Idx<'tag, u32>> for SmallArena<'tag, T>
[src]
fn index_mut(&mut self, i: Idx32<'tag>) -> &mut T
[src]
Gets a mutable reference to the value at this index.
impl<'tag, T> IndexMut<Idx<'tag, u16>> for TinyArena<'tag, T>
[src]
impl<'tag, T> IndexMut<Idx<'tag, u8>> for NanoArena<'tag, T>
[src]
Auto Trait Implementations
impl<'tag, I> Send for Idx<'tag, I> where
I: Send,
I: Send,
impl<'tag, I> Sync for Idx<'tag, I> where
I: Sync,
I: Sync,
Blanket Implementations
impl<T> From<T> for T
[src]
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,
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> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,