[][src]Trait chargrid_event_routine::EventOrPeek

pub trait EventOrPeek: Sized + Sealed {
    type Event;
    fn with<A, X, F, G>(self, arg: A, f: F, g: G) -> X
    where
        F: FnOnce(A, Self::Event) -> X,
        G: FnOnce(A) -> X
; }

Associated Types

type Event

Loading content...

Required methods

fn with<A, X, F, G>(self, arg: A, f: F, g: G) -> X where
    F: FnOnce(A, Self::Event) -> X,
    G: FnOnce(A) -> X, 

Loading content...

Implementors

impl<E> EventOrPeek for Event<E>[src]

type Event = E

impl<E> EventOrPeek for Peek<E>[src]

type Event = E

Loading content...