Skip to main content

ActionLike

Trait ActionLike 

Source
pub trait ActionLike:
    Clone
    + Eq
    + Hash
    + Send
    + Sync
    + 'static { }
Expand description

Action key. Games use their own enums (Clone + Eq + Hash); a &'static str works for quick wiring.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl<T: Clone + Eq + Hash + Send + Sync + 'static> ActionLike for T