pub trait ActionTrait: 'static {
// Required method
fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result;
// Provided method
fn ref_cast_type_id(&self) -> TypeId
where Self: 'static { ... }
}Required Methods§
Provided Methods§
fn ref_cast_type_id(&self) -> TypeIdwhere
Self: 'static,
Implementations§
Source§impl dyn ActionTrait
impl dyn ActionTrait
pub fn is<T: ActionTrait + 'static>(&self) -> bool
pub fn downcast_ref<T: ActionTrait + 'static>(&self) -> Option<&T>
pub fn downcast_mut<T: ActionTrait + 'static>(&mut self) -> Option<&mut T>
Trait Implementations§
Source§impl<T: ActionTrait + Default + Clone> ActionCast<T> for Box<dyn ActionTrait>
impl<T: ActionTrait + Default + Clone> ActionCast<T> for Box<dyn ActionTrait>
Source§impl<T: ActionTrait + ActionDefaultRef> ActionCastRef<T> for Box<dyn ActionTrait>
impl<T: ActionTrait + ActionDefaultRef> ActionCastRef<T> for Box<dyn ActionTrait>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".