Struct icu_calendar::types::FormattableMonth
source · pub struct FormattableMonth {
pub ordinal: u32,
pub code: MonthCode,
}
Expand description
Representation of a formattable month.
Fields§
§ordinal: u32
The month number in this given year. For calendars with leap months, all months after the leap month will end up with an incremented number.
In general, prefer using the month code in generic code.
code: MonthCode
The month code, used to distinguish months during leap years.
Trait Implementations§
source§impl Clone for FormattableMonth
impl Clone for FormattableMonth
source§fn clone(&self) -> FormattableMonth
fn clone(&self) -> FormattableMonth
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FormattableMonth
impl Debug for FormattableMonth
source§impl PartialEq<FormattableMonth> for FormattableMonth
impl PartialEq<FormattableMonth> for FormattableMonth
source§fn eq(&self, other: &FormattableMonth) -> bool
fn eq(&self, other: &FormattableMonth) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.