#[non_exhaustive]pub enum YearRange {
Standard,
Extended,
}
Available on crate features
formatting
or parsing
only.Expand description
The range of years that are supported.
This modifier has no effect when the year repr is LastTwo
.
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.
Standard
Years between -9999 and 9999 are supported.
Extended
Years between -999_999 and 999_999 are supported, with the sign being required if the year contains more than four digits.
If the large-dates
feature is not enabled, this variant is equivalent to Standard
.
Implementations§
Trait Implementations§
Source§impl Default for YearRange
Creates a modifier that indicates the value uses the Extended
range.
impl Default for YearRange
Creates a modifier that indicates the value uses the Extended
range.
impl Copy for YearRange
impl StructuralPartialEq for YearRange
Auto Trait Implementations§
impl Freeze for YearRange
impl RefUnwindSafe for YearRange
impl Send for YearRange
impl Sync for YearRange
impl Unpin for YearRange
impl UnwindSafe for YearRange
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