ragnarok::emmitable

Trait EmmitableEvent

Source
pub trait EmmitableEvent:
    Clone
    + PartialEq
    + Eq
    + Ord {
    type Name: NameOfEvent;
    type Key: NodeKey;

    // Required methods
    fn name(&self) -> Self::Name;
    fn source(&self) -> Self::Name;
    fn key(&self) -> Self::Key;
}

Required Associated Types§

Required Methods§

Source

fn name(&self) -> Self::Name

Get the name of this event.

Source

fn source(&self) -> Self::Name

Get the name of the source event of this event. For example, the source event of a mouseenter would be mouse movement.

Source

fn key(&self) -> Self::Key

The node key targeted by this event.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§