Struct icu_calendar::types::MonthCode
source · pub struct MonthCode(pub TinyStr4);
Expand description
Representation of a month in a year
Month codes typically look like M01
, M02
, etc, but can handle leap months
(M03L
) in lunar calendars. Solar calendars will have codes between M01
and M12
potentially with an M13
for epagomenal months. Check the docs for a particular calendar
for details on what its month codes are.
Month codes are shared with Temporal, see Temporal proposal.
Tuple Fields§
§0: TinyStr4
Implementations§
Trait Implementations§
source§impl AsULE for MonthCode
impl AsULE for MonthCode
§type ULE = TinyAsciiStr<4>
type ULE = TinyAsciiStr<4>
The ULE type corresponding to
Self
. Read moresource§fn to_unaligned(self) -> TinyStr4
fn to_unaligned(self) -> TinyStr4
source§fn from_unaligned(u: TinyStr4) -> Self
fn from_unaligned(u: TinyStr4) -> Self
source§impl From<TinyAsciiStr<4>> for MonthCode
impl From<TinyAsciiStr<4>> for MonthCode
source§impl Ord for MonthCode
impl Ord for MonthCode
source§impl PartialEq for MonthCode
impl PartialEq for MonthCode
source§impl PartialOrd for MonthCode
impl PartialOrd for MonthCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> ZeroMapKV<'a> for MonthCode
impl<'a> ZeroMapKV<'a> for MonthCode
impl Copy for MonthCode
impl Eq for MonthCode
impl StructuralPartialEq for MonthCode
Auto Trait Implementations§
impl Freeze for MonthCode
impl RefUnwindSafe for MonthCode
impl Send for MonthCode
impl Sync for MonthCode
impl Unpin for MonthCode
impl UnwindSafe for MonthCode
Blanket Implementations§
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
Mutably borrows from an owned value. Read more