pub struct Iso;
Expand description

The ISO Calendar

The ISO Calendar is a standardized solar calendar with twelve months. It is identical to the Gregorian calendar, except it uses negative years for years before 1 CE, and may have differing formatting data for a given locale.

This type can be used with Date or DateTime to represent dates in this calendar.

Era codes

This calendar supports one era, "default"

Implementations

Construct a new ISO Calendar

Trait Implementations

Construct a date from era/month codes and fields

The calendar-specific year represented by date

The calendar-specific month represented by date

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

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

Information of the day of the year

Obtain a name for the calendar for debug printing

The AnyCalendarKind corresponding to this calendar, if one exists. Implementors outside of icu_calendar should return None Read more

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Convert this calendar into an AnyCalendar, moving it Read more

Convert this calendar into an AnyCalendar, cloning it Read more

Convert a date for this calendar into an AnyDateInner Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The calendar being wrapped

Obtain the inner calendar

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

🔬 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.