pub struct Iso;
Expand description

The ISO Calendar

Implementations

Construct a new ISO Calendar

Check if a given ISO year is a leap year

Trait Implementations

The calendar-specific year represented by date

The calendar-specific month represented by date

The calendar-specific day-of-month represented by date

Information of the day of the year

The internal type used to represent dates

Construct the date from an ISO date

Obtain an ISO date from this date

Count the number of months in a given year, specified by providing a date from that year Read more

Count the number of days in a given year, specified by providing a date from that year Read more

Count the number of days in a given month, specified by providing a date from that year/month Read more

Calculate the day of the week and return it

Add offset to date

Calculate date2 - date as a duration

Obtain a name for the calendar for debug printing

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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

Creates a filterable data provider with the given name for debugging. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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.