pub struct Year {
pub kind: YearKind,
pub significant_digits: Option<u32>,
pub qualifier: Qualifier,
}Expand description
A calendar year with optional significant-digit precision and qualification.
Fields§
§kind: YearKindWhich syntactic form the year uses, and its digits.
significant_digits: Option<u32>S-suffix significant digits (ISO 8601-2 §4.4.3, §4.7.4).
qualifier: QualifierQualification applying to the year component.
Implementations§
Trait Implementations§
impl Copy for Year
impl Eq for Year
impl StructuralPartialEq for Year
Auto Trait Implementations§
impl Freeze for Year
impl RefUnwindSafe for Year
impl Send for Year
impl Sync for Year
impl Unpin for Year
impl UnsafeUnpin for Year
impl UnwindSafe for Year
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