pub struct FormattableMonth {
pub ordinal: u32,
pub code: MonthCode,
}Expand description
Representation of a formattable month.
Fields§
§ordinal: u32The 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: MonthCodeThe month code, used to distinguish months during leap years.
This may not necessarily be the canonical month code for a month in cases where a month has different formatting in a leap year, for example Adar/Adar II in the Hebrew calendar in a leap year has the code M06, but for formatting specifically the Hebrew calendar will return M06L since it is formatted differently.
Trait Implementations§
Source§impl Clone for FormattableMonth
impl Clone for FormattableMonth
Source§fn clone(&self) -> FormattableMonth
fn clone(&self) -> FormattableMonth
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FormattableMonth
impl Debug for FormattableMonth
Source§impl PartialEq for FormattableMonth
impl PartialEq for FormattableMonth
impl Copy for FormattableMonth
impl StructuralPartialEq for FormattableMonth
Auto Trait Implementations§
impl Freeze for FormattableMonth
impl RefUnwindSafe for FormattableMonth
impl Send for FormattableMonth
impl Sync for FormattableMonth
impl Unpin for FormattableMonth
impl UnwindSafe for FormattableMonth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> MaybeSendSync for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes