Struct CalendarYear
pub struct CalendarYear { /* private fields */ }Implementations§
§impl CalendarYear
impl CalendarYear
pub fn new(year: i32) -> CalendarYear
pub fn year(&self) -> i32
pub fn is_leap_year(&self) -> bool
pub fn days_in_year(&self) -> u16
Trait Implementations§
§impl Clone for CalendarYear
impl Clone for CalendarYear
§fn clone(&self) -> CalendarYear
fn clone(&self) -> CalendarYear
Returns a duplicate 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 more§impl Debug for CalendarYear
impl Debug for CalendarYear
§impl PartialEq for CalendarYear
impl PartialEq for CalendarYear
impl Copy for CalendarYear
impl Eq for CalendarYear
impl StructuralPartialEq for CalendarYear
Auto Trait Implementations§
impl Freeze for CalendarYear
impl RefUnwindSafe for CalendarYear
impl Send for CalendarYear
impl Sync for CalendarYear
impl Unpin for CalendarYear
impl UnsafeUnpin for CalendarYear
impl UnwindSafe for CalendarYear
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