[−][src]Trait traitcast::TraitcastFrom
Subtraits of TraitcastFrom
may be cast into dyn Any
, and thus may be
cast into any other castable dynamic trait object, too. This is blanket
implemented for all sized types with static lifetimes.
Required methods
fn as_any_ref(&self) -> &(dyn Any + 'static)
Cast to an immutable reference to a trait object.
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Cast to a mutable reference to a trait object.
fn as_any_box(self: Box<Self>) -> Box<dyn Any + 'static>
Cast to a boxed reference to a trait object.
Provided methods
Loading content...Implementations on Foreign Types
impl TraitcastFrom for dyn Any + 'static
[src]
fn as_any_ref(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
fn as_any_box(self: Box<dyn Any + 'static>) -> Box<dyn Any + 'static>
[src]
fn type_id(&self) -> TypeId
[src]
Implementors
impl<T> TraitcastFrom for T where
T: 'static,
[src]
T: 'static,
Blanket implementation that automatically implements TraitcastFrom for most user-defined types.