pub enum YearType {
Common,
Leap,
}Expand description
The type of the year.
A YearType::Common year has 365 days and a YearType::Leap year has 366 days.
Variants§
Trait Implementations§
impl Copy for YearType
impl Eq for YearType
impl StructuralPartialEq for YearType
Auto Trait Implementations§
impl Freeze for YearType
impl RefUnwindSafe for YearType
impl Send for YearType
impl Sync for YearType
impl Unpin for YearType
impl UnsafeUnpin for YearType
impl UnwindSafe for YearType
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