pub enum PagerOutcome {
Continue,
Unchanged,
Changed,
Page(usize),
}Expand description
Result of event handling.
Variants§
Continue
The given event has not been used at all.
Unchanged
The event has been recognized, but the result was nil. Further processing for this event may stop.
Changed
The event has been recognized and there is some change due to it. Further processing for this event may stop. Rendering the ui is advised.
Page(usize)
Displayed page changed.
Trait Implementations§
source§impl Clone for PagerOutcome
impl Clone for PagerOutcome
source§fn clone(&self) -> PagerOutcome
fn clone(&self) -> PagerOutcome
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl ConsumedEvent for PagerOutcome
impl ConsumedEvent for PagerOutcome
source§fn is_consumed(&self) -> bool
fn is_consumed(&self) -> bool
Is this the ‘consumed’ result.
source§fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
fn or_else_try<F, E>(self, f: F) -> Result<Self, E>
Or-Else chaining with
is_consumed() as the split.source§impl Debug for PagerOutcome
impl Debug for PagerOutcome
source§impl From<Outcome> for PagerOutcome
impl From<Outcome> for PagerOutcome
source§impl From<PagerOutcome> for Outcome
impl From<PagerOutcome> for Outcome
source§fn from(value: PagerOutcome) -> Self
fn from(value: PagerOutcome) -> Self
Converts to this type from the input type.
source§impl From<bool> for PagerOutcome
impl From<bool> for PagerOutcome
source§impl HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState
impl HandleEvent<Event, MouseOnly, PagerOutcome> for DualPagerState
source§impl HandleEvent<Event, MouseOnly, PagerOutcome> for SinglePagerState
impl HandleEvent<Event, MouseOnly, PagerOutcome> for SinglePagerState
source§impl HandleEvent<Event, Regular, PagerOutcome> for DualPagerState
impl HandleEvent<Event, Regular, PagerOutcome> for DualPagerState
source§impl HandleEvent<Event, Regular, PagerOutcome> for SinglePagerState
impl HandleEvent<Event, Regular, PagerOutcome> for SinglePagerState
source§impl Ord for PagerOutcome
impl Ord for PagerOutcome
source§fn cmp(&self, other: &PagerOutcome) -> Ordering
fn cmp(&self, other: &PagerOutcome) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for PagerOutcome
impl PartialEq for PagerOutcome
source§impl PartialOrd for PagerOutcome
impl PartialOrd for PagerOutcome
impl Copy for PagerOutcome
impl Eq for PagerOutcome
impl StructuralPartialEq for PagerOutcome
Auto Trait Implementations§
impl Freeze for PagerOutcome
impl RefUnwindSafe for PagerOutcome
impl Send for PagerOutcome
impl Sync for PagerOutcome
impl Unpin for PagerOutcome
impl UnwindSafe for PagerOutcome
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more