[−][src]Struct chargrid_event_routine::OnEvent
Trait Implementations
impl<T, F> EventRoutine for OnEvent<T, F> where
T: EventRoutine,
F: FnMut(&mut &mut T::Data, &T::Event),
[src]
T: EventRoutine,
F: FnMut(&mut &mut T::Data, &T::Event),
type Return = T::Return
type Data = T::Data
type View = T::View
type Event = T::Event
fn handle<EP>(
self,
data: &mut Self::Data,
view: &Self::View,
event_or_peek: EP
) -> Handled<Self::Return, Self> where
EP: EventOrPeek<Event = Self::Event>,
[src]
self,
data: &mut Self::Data,
view: &Self::View,
event_or_peek: EP
) -> Handled<Self::Return, Self> where
EP: EventOrPeek<Event = Self::Event>,
fn view<G, C>(
&self,
data: &Self::Data,
view: &mut Self::View,
context: ViewContext<C>,
frame: &mut G
) where
G: Frame,
C: ColModify,
[src]
&self,
data: &Self::Data,
view: &mut Self::View,
context: ViewContext<C>,
frame: &mut G
) where
G: Frame,
C: ColModify,
fn repeat<U, F>(self, f: F) -> Repeat<Self, F> where
F: FnMut(Self::Return) -> Handled<U, Self>,
[src]
F: FnMut(Self::Return) -> Handled<U, Self>,
fn select<S>(self, selector: S) -> Select<Self, S> where
S: Selector<DataOutput = Self::Data, ViewOutput = Self::View>,
[src]
S: Selector<DataOutput = Self::Data, ViewOutput = Self::View>,
fn then<U, F>(self, f: F) -> Then<Self, U, F> where
U: EventRoutine<Data = Self::Data, View = Self::View>,
F: FnOnce() -> U,
[src]
U: EventRoutine<Data = Self::Data, View = Self::View>,
F: FnOnce() -> U,
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F> where
U: EventRoutine<Data = Self::Data, View = Self::View>,
F: FnOnce(Self::Return) -> U,
[src]
U: EventRoutine<Data = Self::Data, View = Self::View>,
F: FnOnce(Self::Return) -> U,
fn map<F, U>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Return) -> U,
[src]
F: FnOnce(Self::Return) -> U,
fn convert_input_to_common_event(self) -> ConvertInputToCommonEvent<Self>
[src]
fn app_one_shot_ignore_return(
self,
data: Self::Data,
view: Self::View
) -> EventRoutineAppOneShotIgnoreReturn<Self>
[src]
self,
data: Self::Data,
view: Self::View
) -> EventRoutineAppOneShotIgnoreReturn<Self>
fn return_on_exit<F>(self, f: F) -> ReturnOnExit<Self, F> where
F: FnOnce(&mut Self::Data) -> Self::Return,
[src]
F: FnOnce(&mut Self::Data) -> Self::Return,
fn decorated<D>(self, d: D) -> Decorated<Self, D> where
D: Decorate<View = Self::View, Data = Self::Data>,
[src]
D: Decorate<View = Self::View, Data = Self::Data>,
fn on_event<F>(self, f: F) -> OnEvent<Self, F> where
F: FnMut(&mut &mut Self::Data, &Self::Event),
[src]
F: FnMut(&mut &mut Self::Data, &Self::Event),
Auto Trait Implementations
impl<T, F> RefUnwindSafe for OnEvent<T, F> where
F: RefUnwindSafe,
T: RefUnwindSafe,
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for OnEvent<T, F> where
F: Send,
T: Send,
F: Send,
T: Send,
impl<T, F> Sync for OnEvent<T, F> where
F: Sync,
T: Sync,
F: Sync,
T: Sync,
impl<T, F> Unpin for OnEvent<T, F> where
F: Unpin,
T: Unpin,
F: Unpin,
T: Unpin,
impl<T, F> UnwindSafe for OnEvent<T, F> where
F: UnwindSafe,
T: UnwindSafe,
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,