pub enum Either<Left, Right> {
Left(Left),
Right(Right),
}
Variants§
Trait Implementations§
Source§impl<Left, Right> EventRoutine for Either<Left, Right>where
Left: EventRoutine,
Right: EventRoutine<Data = Left::Data, View = Left::View, Return = Left::Return, Event = Left::Event>,
impl<Left, Right> EventRoutine for Either<Left, Right>where
Left: EventRoutine,
Right: EventRoutine<Data = Left::Data, View = Left::View, Return = Left::Return, Event = Left::Event>,
type Return = <Left as EventRoutine>::Return
type Data = <Left as EventRoutine>::Data
type View = <Left as EventRoutine>::View
type Event = <Left as EventRoutine>::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>,
fn view<FR, CM>( &self, data: &Self::Data, view: &mut Self::View, context: ViewContext<CM>, frame: &mut FR, )
fn repeat<U, F>(self, f: F) -> Repeat<Self, F>
fn select<S>(self, selector: S) -> Select<Self, S>
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
fn map<F, U>(self, f: F) -> Map<Self, F>
fn convert_input_to_common_event(self) -> ConvertInputToCommonEvent<Self>
fn app_one_shot_ignore_return( self, data: Self::Data, view: Self::View, ) -> EventRoutineAppOneShotIgnoreReturn<Self>
fn return_on_exit<F>(self, f: F) -> ReturnOnExit<Self, F>
fn decorated<D>(self, d: D) -> Decorated<Self, D>
fn on_event<F>(self, f: F) -> OnEvent<Self, F>
Auto Trait Implementations§
impl<Left, Right> Freeze for Either<Left, Right>
impl<Left, Right> RefUnwindSafe for Either<Left, Right>where
Left: RefUnwindSafe,
Right: RefUnwindSafe,
impl<Left, Right> Send for Either<Left, Right>
impl<Left, Right> Sync for Either<Left, Right>
impl<Left, Right> Unpin for Either<Left, Right>
impl<Left, Right> UnwindSafe for Either<Left, Right>where
Left: UnwindSafe,
Right: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more