Trait dyn_any::DynAny

source ·
pub trait DynAny<'a> {
    // Required methods
    fn type_id(&self) -> TypeId;
    fn type_name(&self) -> &'static str;
}

Required Methods§

source

fn type_id(&self) -> TypeId

source

fn type_name(&self) -> &'static str

Trait Implementations§

source§

impl From<()> for Box<dyn DynAny<'static>>

source§

fn from(_: ()) -> Box<dyn DynAny<'static>>

Converts to this type from the input type.
source§

impl<'a> StaticType for dyn DynAny<'a> + '_

§

type Static = dyn DynAny<'static> + 'static

source§

fn type_id(&self) -> TypeId

source§

impl<'a, T: DynAny<'a> + 'a> UpcastFrom<T> for dyn DynAny<'a> + 'a

source§

fn up_from(value: &T) -> &(dyn DynAny<'a> + 'a)

source§

fn up_from_mut(value: &mut T) -> &mut (dyn DynAny<'a> + 'a)

source§

fn up_from_box(value: Box<T>) -> Box<Self>

Implementors§

source§

impl<'a, T: StaticType> DynAny<'a> for T