pub struct CivilDate { /* private fields */ }Expand description
The date value native_date_picker shows and reports — defined beside the
control (crate::controls::date_picker) because the platform-agnostic
event vocabulary carries it too, and re-exported here as the builder’s
public vocabulary.
A calendar date — year, month, day — with no time of day and no time
zone: what a native date picker shows and what its change handler
reports.
Proleptic Gregorian, year 1–9999, month 1-based (1 = January),
day 1–31 and real for its month (no 31 April, 29 February only in a
leap year). CivilDate::new is the only public constructor, and the
only way to build one outside this crate — it refuses anything that is
not a real date in range, so an out-of-crate caller can never hold an
invalid value. Read the components back with Self::year,
Self::month and Self::day.
Ordered chronologically (year, then month, then day).
Implementations§
Trait Implementations§
impl Copy for CivilDate
impl Eq for CivilDate
Source§impl Ord for CivilDate
impl Ord for CivilDate
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for CivilDate
impl PartialOrd for CivilDate
impl StructuralPartialEq for CivilDate
Auto Trait Implementations§
impl Freeze for CivilDate
impl RefUnwindSafe for CivilDate
impl Send for CivilDate
impl Sync for CivilDate
impl Unpin for CivilDate
impl UnsafeUnpin for CivilDate
impl UnwindSafe for CivilDate
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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
key and return true if they are equal.