pub trait AnyEnum {
// Required methods
fn as_any_kind(&self) -> &dyn Any;
fn as_any_kind_mut(&mut self) -> &mut dyn Any;
}
Expand description
A helper trait for downcasting types that may be enums.
Required Methods§
Sourcefn as_any_kind(&self) -> &dyn Any
fn as_any_kind(&self) -> &dyn Any
Recursively “unwraps” enum and casts to Any
for downcasting.
Sourcefn as_any_kind_mut(&mut self) -> &mut dyn Any
fn as_any_kind_mut(&mut self) -> &mut dyn Any
Recursively “unwraps” enum and casts to Any
for downcasting.