[go: up one dir, main page]

AsAny

Trait AsAny 

Source
pub trait AsAny {
    // Required method
    fn as_any(&self) -> &(dyn Any + 'static);
}
Expand description

A trait that allows an object to be downcast to a reference of type Any.

Required Methods§

Source

fn as_any(&self) -> &(dyn Any + 'static)

Returns a reference to the current object as a trait object.

Implementors§