[][src]Trait guion::event::variant::VariantSupport

pub trait VariantSupport<V, E>: Event<E> where
    E: Env,
    E::Backend: Backend<E, Event = Self>,
    V: Variant<E>, 
{ fn from_variant(v: V) -> Self;
fn to_variant(&self) -> Option<V>; }

Required methods

fn from_variant(v: V) -> Self

fn to_variant(&self) -> Option<V>

Loading content...

Implementors

impl<V, E, K, D> VariantSupport<V, E> for DynEvent<E, K, D> where
    V: Variant<E>,
    E: Env,
    E::Backend: Backend<E, Event = Self>,
    D: Destination,
    K: Key
[src]

Loading content...