[−][src]Struct chargrid_event_routine::SideEffectThen
Methods
impl<F, D, V, E, U> SideEffectThen<F, D, V, E, U> where
U: EventRoutine<Data = D, View = V, Event = E>,
F: FnOnce(&mut D, &V) -> U,
[src]
U: EventRoutine<Data = D, View = V, Event = E>,
F: FnOnce(&mut D, &V) -> U,
pub fn new_with_view(f: F) -> Self
[src]
Trait Implementations
impl<F, D, V, E, U> EventRoutine for SideEffectThen<F, D, V, E, U> where
U: EventRoutine<Data = D, View = V, Event = E>,
F: FnOnce(&mut D, &V) -> U,
[src]
U: EventRoutine<Data = D, View = V, Event = E>,
F: FnOnce(&mut D, &V) -> U,
type Return = U::Return
type Data = D
type View = V
type Event = E
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<F, D, V, E, U> RefUnwindSafe for SideEffectThen<F, D, V, E, U> where
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
U: RefUnwindSafe,
V: RefUnwindSafe,
D: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<F, D, V, E, U> Send for SideEffectThen<F, D, V, E, U> where
D: Send,
E: Send,
F: Send,
U: Send,
V: Send,
D: Send,
E: Send,
F: Send,
U: Send,
V: Send,
impl<F, D, V, E, U> Sync for SideEffectThen<F, D, V, E, U> where
D: Sync,
E: Sync,
F: Sync,
U: Sync,
V: Sync,
D: Sync,
E: Sync,
F: Sync,
U: Sync,
V: Sync,
impl<F, D, V, E, U> Unpin for SideEffectThen<F, D, V, E, U> where
D: Unpin,
E: Unpin,
F: Unpin,
U: Unpin,
V: Unpin,
D: Unpin,
E: Unpin,
F: Unpin,
U: Unpin,
V: Unpin,
impl<F, D, V, E, U> UnwindSafe for SideEffectThen<F, D, V, E, U> where
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
U: UnwindSafe,
V: UnwindSafe,
D: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
U: UnwindSafe,
V: 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>,