Enum pavex::time::format_description::modifier::MonthRepr
#[non_exhaustive]pub enum MonthRepr {
Numerical,
Long,
Short,
}
Expand description
The representation of a month.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Numerical
The number of the month (January is 1, December is 12).
Long
The long form of the month name (e.g. “January”).
Short
The short form of the month name (e.g. “Jan”).
Trait Implementations§
§impl Default for MonthRepr
impl Default for MonthRepr
Creates a modifier that indicates the value uses the
Numerical
representation.
impl Copy for MonthRepr
impl Eq for MonthRepr
impl StructuralPartialEq for MonthRepr
Auto Trait Implementations§
impl Freeze for MonthRepr
impl RefUnwindSafe for MonthRepr
impl Send for MonthRepr
impl Sync for MonthRepr
impl Unpin for MonthRepr
impl UnwindSafe for MonthRepr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.