Trait std::any::AnyStable [-] [+] [src]

pub trait Any: 'static where Self: 'static {
    fn get_type_id(&self) -> TypeId;
}

The Any trait is implemented by all 'static types, and can be used for dynamic typing

Every type with no non-'static references implements Any, so Any can be used as a trait object to emulate the effects dynamic typing.

Required Methods

fn get_type_id(&self) -> TypeId

Get the TypeId of self

Implementors