Struct tdtxt::SimpleDate [−][src]
pub struct SimpleDate { /* fields omitted */ }
Expand description
A very basic date type used when feature chrono
is not active.
Implementations
Creates a new date.
Panics
Can panic if the month/day are not within the limits.
- Month: 1-12
- Day: 1-31
Creates a new date. Will return None
if the date creation would have
failed.
For more information about what could fail see: Self::from_ymd
.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for SimpleDate
impl Send for SimpleDate
impl Sync for SimpleDate
impl Unpin for SimpleDate
impl UnwindSafe for SimpleDate
Blanket Implementations
Mutably borrows from an owned value. Read more