pub struct Date { /* private fields */ }
Expand description

A date

The parser has some sanity check to make sure the date remotly makes sense but it doesn’t verify it is an actual real date valid date.

If that is important, you should use a date-time library to verify the validity.

Implementations

Returns the year

Returns the number of the month in the year

The result is between 1 (january) and 12 (december) inclusive.

Returns the number of the day in the month

The result is between 1 and 31 inclusive

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.