Trait chargrid_event_routine::EventOrPeek[][src]

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

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, 
[src]

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...