pub enum YearKind {
Standard {
negative: bool,
digits: [Option<u8>; 4],
},
Big {
value: i64,
},
Exponential {
significand: i64,
exponent: u32,
},
}Expand description
The three syntactic forms a calendar year can take.
Variants§
Standard
Four-digit year, possibly negative, possibly with X digits
(None = unspecified digit).
Fields
Big
Y-prefixed year beyond ±9999 (ISO 8601-2 §4.7.2).
Exponential
Y…E… exponential year (ISO 8601-2 §4.7.3).
Trait Implementations§
impl Copy for YearKind
impl Eq for YearKind
impl StructuralPartialEq for YearKind
Auto Trait Implementations§
impl Freeze for YearKind
impl RefUnwindSafe for YearKind
impl Send for YearKind
impl Sync for YearKind
impl Unpin for YearKind
impl UnsafeUnpin for YearKind
impl UnwindSafe for YearKind
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