#[non_exhaustive]pub enum YearRange {
Standard,
Extended,
}used only in the deprecated Year component
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
Standard
used only in the deprecated Year component
Years between -9999 and 9999 are supported.
Extended
used only in the deprecated Year component
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.
Note that this is the default modifier for version 1 and 2 format descriptions. Version 3
format descriptions (which cannot be manually constructed) use Standard as the default.
Sourceยงimpl Eq for YearRange
impl Eq for YearRange
Sourceยง#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)1.0.0 (const: unstable) ยท Sourceยง#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Sourceยงimpl PartialEq for YearRange
impl PartialEq for YearRange
impl Copy for YearRange
impl StructuralPartialEq for YearRange
impl TrivialClone 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 UnsafeUnpin 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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Sourceยง#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Sourceยง#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Sourceยง#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Sourceยง#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Sourceยง#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Sourceยง#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read more