pub enum DialogViewType {
Years = 1,
Months = 2,
Days = 3,
}
Expand description
Types of views for the datepicker.
Variants§
Years = 1
YEARS_IN_YEAR_SELECTION Years, from a year which modulo % 20 == 0
Months = 2
1 full year with the selection of a month
Days = 3
1 full month with the selection of a day
Implementations§
Source§impl DialogViewType
impl DialogViewType
Sourcepub const fn larger_type(&self) -> Option<DialogViewType>
pub const fn larger_type(&self) -> Option<DialogViewType>
returns the larger view type, if such exists, otherwise returns None
Trait Implementations§
Source§impl Clone for DialogViewType
impl Clone for DialogViewType
Source§fn clone(&self) -> DialogViewType
fn clone(&self) -> DialogViewType
Returns a duplicate 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 Debug for DialogViewType
impl Debug for DialogViewType
Source§impl Default for DialogViewType
impl Default for DialogViewType
Source§fn default() -> DialogViewType
fn default() -> DialogViewType
Returns the “default value” for a type. Read more
Source§impl Ord for DialogViewType
impl Ord for DialogViewType
Source§fn cmp(&self, other: &DialogViewType) -> Ordering
fn cmp(&self, other: &DialogViewType) -> 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 DialogViewType
impl PartialEq for DialogViewType
Source§impl PartialOrd for DialogViewType
impl PartialOrd for DialogViewType
impl Copy for DialogViewType
impl Eq for DialogViewType
impl StructuralPartialEq for DialogViewType
Auto Trait Implementations§
impl Freeze for DialogViewType
impl RefUnwindSafe for DialogViewType
impl Send for DialogViewType
impl Sync for DialogViewType
impl Unpin for DialogViewType
impl UnwindSafe for DialogViewType
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.