pub struct Year(pub u16);
Expand description
Represents a year, which can be any valid u16
.
Tuple Fields§
§0: u16
Trait Implementations§
source§impl Ord for Year
impl Ord for Year
source§impl PartialEq for Year
impl PartialEq for Year
source§impl PartialOrd for Year
impl PartialOrd for Year
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Year
impl Eq for Year
impl StructuralEq for Year
impl StructuralPartialEq for Year
Auto Trait Implementations§
impl RefUnwindSafe for Year
impl Send for Year
impl Sync for Year
impl Unpin 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