Enum rat_widget::event::CalOutcome
source · pub enum CalOutcome {
Continue,
Unchanged,
Changed,
Week(NaiveDate),
Day(NaiveDate),
Month(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.
Week(NaiveDate)
Week selected. This is Monday of the selected week.
Day(NaiveDate)
Day selected. Selected tab should be closed.
Month(usize)
Month in a list of months selected.
Trait Implementations§
source§impl Clone for CalOutcome
impl Clone for CalOutcome
source§fn clone(&self) -> CalOutcome
fn clone(&self) -> CalOutcome
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 CalOutcome
impl ConsumedEvent for CalOutcome
source§fn is_consumed(&self) -> bool
fn is_consumed(&self) -> bool
Is this the ‘consumed’ result.
source§fn or_else_try<F, E1>(self, f: F) -> Result<Self, E1>
fn or_else_try<F, E1>(self, f: F) -> Result<Self, E1>
Or-Else chaining with
is_consumed() as the split.source§impl Debug for CalOutcome
impl Debug for CalOutcome
source§impl From<CalOutcome> for Outcome
impl From<CalOutcome> for Outcome
source§fn from(value: CalOutcome) -> Self
fn from(value: CalOutcome) -> Self
Converts to this type from the input type.
source§impl From<Outcome> for CalOutcome
impl From<Outcome> for CalOutcome
source§impl From<bool> for CalOutcome
impl From<bool> for CalOutcome
source§impl HandleEvent<Event, MouseOnly, CalOutcome> for MonthState
impl HandleEvent<Event, MouseOnly, CalOutcome> for MonthState
source§impl HandleEvent<Event, Regular, CalOutcome> for &mut [MonthState]
impl HandleEvent<Event, Regular, CalOutcome> for &mut [MonthState]
source§impl HandleEvent<Event, Regular, CalOutcome> for MonthState
impl HandleEvent<Event, Regular, CalOutcome> for MonthState
source§impl Ord for CalOutcome
impl Ord for CalOutcome
source§fn cmp(&self, other: &CalOutcome) -> Ordering
fn cmp(&self, other: &CalOutcome) -> 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 CalOutcome
impl PartialEq for CalOutcome
source§impl PartialOrd for CalOutcome
impl PartialOrd for CalOutcome
impl Copy for CalOutcome
impl Eq for CalOutcome
impl StructuralPartialEq for CalOutcome
Auto Trait Implementations§
impl Freeze for CalOutcome
impl RefUnwindSafe for CalOutcome
impl Send for CalOutcome
impl Sync for CalOutcome
impl Unpin for CalOutcome
impl UnwindSafe for CalOutcome
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