Struct arret_runtime::boxed::Any[][src]

#[repr(C, align(16))]
pub struct Any { /* fields omitted */ }

Supertype of all boxed types

Implementations

impl Any[src]

pub fn as_subtype(&self) -> AnySubtype<'_>[src]

Returns a subtype of this value based on its type tag

pub fn downcast_ref<T: DistinctTagged>(&self) -> Option<Gc<T>>[src]

Tries to downcast this reference to a subtype based on its type tag

Trait Implementations

impl Boxed for Any[src]

impl Debug for Any[src]

impl DistinctTagged for Any[src]

impl Drop for Any[src]

impl EncodeBoxedAbiType for Any[src]

impl HashInHeap for Any[src]

impl PartialEqInHeap for Any[src]

Auto Trait Implementations

impl RefUnwindSafe for Any

impl Send for Any

impl Sync for Any

impl Unpin for Any

impl UnwindSafe for Any

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, 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.