pub struct MonthCode(pub TinyAsciiStr<4>);
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.
Tuple Fields§
§0: TinyAsciiStr<4>
Trait Implementations§
source§impl<'de> Deserialize<'de> for MonthCode
impl<'de> Deserialize<'de> for MonthCode
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<MonthCode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<MonthCode, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Ord for MonthCode
impl Ord for MonthCode
source§impl PartialEq<MonthCode> for MonthCode
impl PartialEq<MonthCode> for MonthCode
source§impl PartialOrd<MonthCode> for MonthCode
impl PartialOrd<MonthCode> 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 more