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§
Trait Implementations§
Source§impl Calendar for Iso
impl Calendar for Iso
Source§fn date_from_codes(
&self,
era: Era,
year: i32,
month_code: MonthCode,
day: u8,
) -> Result<Self::DateInner, CalendarError>
fn date_from_codes( &self, era: Era, year: i32, month_code: MonthCode, day: u8, ) -> Result<Self::DateInner, CalendarError>
Construct a date from era/month codes and fields
Source§fn year(&self, date: &Self::DateInner) -> FormattableYear
fn year(&self, date: &Self::DateInner) -> FormattableYear
The calendar-specific year represented by date
Source§fn month(&self, date: &Self::DateInner) -> FormattableMonth
fn month(&self, date: &Self::DateInner) -> FormattableMonth
The calendar-specific month represented by date
Source§fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
fn day_of_month(&self, date: &Self::DateInner) -> DayOfMonth
The calendar-specific day-of-month represented by date
Source§type DateInner = IsoDateInner
type DateInner = IsoDateInner
Source§fn date_from_iso(&self, iso: Date<Iso>) -> IsoDateInner
fn date_from_iso(&self, iso: Date<Iso>) -> IsoDateInner
Source§fn months_in_year(&self, date: &Self::DateInner) -> u8
fn months_in_year(&self, date: &Self::DateInner) -> u8
Source§fn days_in_year(&self, date: &Self::DateInner) -> u16
fn days_in_year(&self, date: &Self::DateInner) -> u16
Source§fn days_in_month(&self, date: &Self::DateInner) -> u8
fn days_in_month(&self, date: &Self::DateInner) -> u8
Source§fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
fn day_of_week(&self, date: &Self::DateInner) -> IsoWeekday
Source§fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
fn is_in_leap_year(&self, date: &Self::DateInner) -> bool
Source§fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
fn day_of_year_info(&self, date: &Self::DateInner) -> DayOfYearInfo
Source§fn debug_name(&self) -> &'static str
fn debug_name(&self) -> &'static str
Source§fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
fn any_calendar_kind(&self) -> Option<AnyCalendarKind>
AnyCalendarKind corresponding to this calendar,
if one exists. Implementors outside of icu::calendar should return NoneSource§impl IntoAnyCalendar for Iso
impl IntoAnyCalendar for Iso
Source§fn to_any(self) -> AnyCalendar
fn to_any(self) -> AnyCalendar
AnyCalendar, moving it Read moreSource§fn to_any_cloned(&self) -> AnyCalendar
fn to_any_cloned(&self) -> AnyCalendar
AnyCalendar, cloning it Read moreSource§fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
fn date_to_any(&self, d: &Self::DateInner) -> AnyDateInner
AnyDateInner Read moreSource§impl Ord for Iso
impl Ord for Iso
Source§impl PartialOrd for Iso
impl PartialOrd for Iso
impl Copy for Iso
impl Eq for Iso
impl StructuralPartialEq for Iso
Auto Trait Implementations§
impl Freeze for Iso
impl RefUnwindSafe for Iso
impl Send for Iso
impl Sync for Iso
impl Unpin for Iso
impl UnwindSafe for Iso
Blanket Implementations§
Source§impl<C> AsCalendar for Cwhere
C: Calendar,
impl<C> AsCalendar for Cwhere
C: Calendar,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 0 bytes