Trait cursive::view::AnyView [−][src]
pub trait AnyView {
fn as_any(&self) -> &(dyn Any + 'static);
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static);
fn as_boxed_any(self: Box<Self, Global>) -> Box<dyn Any + 'static, Global>ⓘ;
}
Expand description
A view that can be downcasted to its concrete type.
This trait is automatically implemented for any T: View
.
Required methods
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Downcast self to a mutable Any
.
Implementations
Attempts to downcast self
to a concrete type.
Attempts to downcast self
to a concrete type.
Attempts to downcast Box<Self>
to a concrete type.