pub trait AsAnyTrait: AnyTrait {
// Required method
fn as_anytrait(&self) -> &dyn AnyTrait;
}Expand description
upcast from the concrete type
(or from any other trait that implements AnyTrait) to &dyn AnyTrait
Automatically implemented on all types that implement AnyTrait