#[repr(C)]pub struct DatePickerState {
pub year: u32,
pub month: u32,
pub day: u32,
}Expand description
State of a DatePicker: the displayed month/year and the selected day.
Fields§
§year: u32The displayed (and selected) year.
month: u32The displayed (and selected) month, 1..=12.
day: u32The selected day of the month, 1..=31.
Trait Implementations§
Source§impl Clone for DatePickerState
impl Clone for DatePickerState
Source§fn clone(&self) -> DatePickerState
fn clone(&self) -> DatePickerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DatePickerState
Source§impl Debug for DatePickerState
impl Debug for DatePickerState
Source§impl Default for DatePickerState
impl Default for DatePickerState
impl Eq for DatePickerState
Source§impl PartialEq for DatePickerState
impl PartialEq for DatePickerState
impl StructuralPartialEq for DatePickerState
Auto Trait Implementations§
impl Freeze for DatePickerState
impl RefUnwindSafe for DatePickerState
impl Send for DatePickerState
impl Sync for DatePickerState
impl Unpin for DatePickerState
impl UnsafeUnpin for DatePickerState
impl UnwindSafe for DatePickerState
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§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.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