Struct icu_datetime::date::Month
source · [−]Expand description
Representation of a formattable month.
Fields
number: u32
A month number in a year. In normal years, this is usually the 1-based month index. In leap years, this is what the month number would have been in a non-leap year.
For example:
- January = 1
- December = 12
- Adar, Adar I, and Adar II = 6
The code
property is used to distinguish between unique months in leap years.
code: MonthCode
The month code, used to distinguish months during leap years.
Trait Implementations
impl StructuralPartialEq for Month
Auto Trait Implementations
impl RefUnwindSafe for Month
impl Send for Month
impl Sync for Month
impl Unpin for Month
impl UnwindSafe for Month
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more