enum DateWithYear {
Jiff(i16),
EraYear(i16, Era),
}
Expand description
Encodes the “with year” option of DateWith
.
This encodes the invariant that DateWith::year
and DateWith::era_year
are mutually exclusive and override each other.
Variants§
Trait Implementations§
Source§impl Clone for DateWithYear
impl Clone for DateWithYear
Source§fn clone(&self) -> DateWithYear
fn clone(&self) -> DateWithYear
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DateWithYear
impl Debug for DateWithYear
impl Copy for DateWithYear
Auto Trait Implementations§
impl Freeze for DateWithYear
impl RefUnwindSafe for DateWithYear
impl Send for DateWithYear
impl Sync for DateWithYear
impl Unpin for DateWithYear
impl UnwindSafe for DateWithYear
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