[][src]Struct guion::event::dyn_evt::DynEvent

pub struct DynEvent<E, K, D> where
    E: Env,
    E::Backend: Backend<E, Event = Self>,
    D: Destination,
    K: Key
{ pub event: Box<dyn Variant<E>>, // some fields omitted }

Dynamic Event container. Supports all variants.

Fields

event: Box<dyn Variant<E>>

Trait Implementations

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

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

type Dest = D

type Key = K

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]

Auto Trait Implementations

impl<E, K, D> !RefUnwindSafe for DynEvent<E, K, D>

impl<E, K, D> !Send for DynEvent<E, K, D>

impl<E, K, D> !Sync for DynEvent<E, K, D>

impl<E, K, D> Unpin for DynEvent<E, K, D> where
    D: Unpin,
    K: Unpin

impl<E, K, D> !UnwindSafe for DynEvent<E, K, D>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<E, T> StdVarSup<E> for T where
    E: Env,
    T: VariantSupport<KbdDown<E>, E> + VariantSupport<KbdUp<E>, E> + VariantSupport<KbdPress<E>, E> + VariantSupport<MouseDown<E>, E> + VariantSupport<MouseUp<E>, E> + VariantSupport<MouseMove, E> + VariantSupport<MouseEnter, E> + VariantSupport<MouseLeave, E> + VariantSupport<WindowMove, E> + VariantSupport<WindowResize, E> + VariantSupport<Focus, E> + VariantSupport<Unfocus, E> + VariantSupport<RootEvent<E>, E>,
    <E as Env>::Backend: Backend<E>,
    <<E as Env>::Backend as Backend<E>>::Event == T, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.