Struct icu::datetime::date::Year[][src]

pub struct Year {
    pub era: Era,
    pub number: i32,
    pub related_iso: i32,
}

Representation of a formattable year.

Fields

era: Era

The era containing the year.

number: i32

The year number in the current era (usually 1-based).

related_iso: i32

The related ISO year. This is normally the ISO (proleptic Gregorian) year having the greatest overlap with the calendar year. It is used in certain date formatting patterns.

Trait Implementations

impl Clone for Year[src]

impl Debug for Year[src]

impl PartialEq<Year> for Year[src]

impl StructuralPartialEq for Year[src]

Auto Trait Implementations

impl RefUnwindSafe for Year

impl Send for Year

impl Sync for Year

impl Unpin for Year

impl UnwindSafe for Year

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

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.