Struct icu_datetime::date::Month[][src]

pub struct Month {
    pub number: u32,
    pub code: MonthCode,
}

Representation of a formattable month.

Fields

number: u32

A month number in a year. In normal years, this is usually the 1-based month index. In leap years, this is what the month number would have been in a non-leap year.

For example:

  • January = 1
  • December = 12
  • Adar, Adar I, and Adar II = 6

The code property is used to distinguish between unique months in leap years.

code: MonthCode

The month code, used to distinguish months during leap years.

Trait Implementations

impl Clone for Month[src]

impl Debug for Month[src]

impl PartialEq<Month> for Month[src]

impl StructuralPartialEq for Month[src]

Auto Trait Implementations

impl RefUnwindSafe for Month

impl Send for Month

impl Sync for Month

impl Unpin for Month

impl UnwindSafe for Month

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> ErasedDataStruct for T where
    T: Clone + Debug + Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.