DynAny

Trait 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>>

Available on crate feature alloc only.
Source§

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

Converts to this type from the input type.
Source§

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

Source§

type Static = dyn DynAny<'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