pub struct Year(/* private fields */);
Implementations§
Source§impl Year
impl Year
pub fn new(year: i32) -> Self
pub fn from_datetime(dt: DateTime<FixedOffset>) -> Self
pub fn is_leap_year(&self) -> bool
Trait Implementations§
Source§impl PartialOrd for Year
impl PartialOrd for Year
impl Copy 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 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