Struct tdtxt::Date [−][src]
pub struct Date { /* fields omitted */ }
Expand description
A simple date structure, which represents the date in the format
yyyy-mm-dd
.
Notes
The inner/backing type is depended on the feature chrono
.
Implementations
Creates a new date.
Panics
Can panic if the date is invalid.
For more information see the relevant backing implementation:
SimpleDate::from_ymd
Creates a new date. Returns None
when the date creation would have
failed.
Notes
For more information see the relevant backing implementation:
SimpleDate::from_ymd_opt
Methods from Deref<Target = SimpleDate>
Trait Implementations
Performs the conversion.
type Target = SimpleDate
type Target = SimpleDate
The resulting type after dereferencing.
Performs the conversion.
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 Date
impl UnwindSafe for Date
Blanket Implementations
Mutably borrows from an owned value. Read more