Struct ra_ap_la_arena::Idx[][src]

pub struct Idx<T> { /* fields omitted */ }

The index of a value allocated in an arena that holds Ts.

Implementations

impl<T> Idx<T>[src]

pub fn from_raw(raw: RawIdx) -> Self[src]

Creates a new index from a RawIdx.

pub fn into_raw(self) -> RawIdx[src]

Converts this index into the underlying RawIdx.

Trait Implementations

impl<T> Clone for Idx<T>[src]

impl<T> Copy for Idx<T>[src]

impl<T> Debug for Idx<T>[src]

impl<T> Eq for Idx<T>[src]

impl<T> Hash for Idx<T>[src]

impl<T> Index<Idx<T>> for Arena<T>[src]

type Output = T

The returned type after indexing.

impl<T, V> Index<Idx<V>> for ArenaMap<Idx<V>, T>[src]

type Output = T

The returned type after indexing.

impl<T> IndexMut<Idx<T>> for Arena<T>[src]

impl<T> PartialEq<Idx<T>> for Idx<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Idx<T>

impl<T> Send for Idx<T>

impl<T> Sync for Idx<T>

impl<T> Unpin for Idx<T>

impl<T> UnwindSafe for Idx<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.