Struct arret_runtime::class_map::ClassMap[][src]

#[repr(C)]
pub struct ClassMap { /* fields omitted */ }

Mapping of record class IDs to classes

Implementations

impl ClassMap[src]

pub fn empty() -> ClassMap[src]

Constructs a new instance containing no classes

pub fn push_dynamic_class(&mut self, boxed_class: BoxedClass) -> RecordClassId[src]

Registers a new class and returns a distinct RecordClassId

pub fn class_for_record_class_id(
    &self,
    record_class_id: RecordClassId
) -> ClassRef<'_>
[src]

Returns a class reference for a given RecordClassId

Trait Implementations

impl Clone for ClassMap[src]

Auto Trait Implementations

impl RefUnwindSafe for ClassMap

impl !Send for ClassMap

impl !Sync for ClassMap

impl Unpin for ClassMap

impl UnwindSafe for ClassMap

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.