Skip to main content

ActionCastRef

Trait ActionCastRef 

Source
pub trait ActionCastRef<T> {
    // Required method
    fn cast_ref(&self) -> &T;
}

Required Methods§

Source

fn cast_ref(&self) -> &T

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ActionCastRef<T> for Option<Arc<dyn ActionTrait>>

Source§

fn cast_ref(&self) -> &T

Implementors§