pub struct Gregorian;Trait Implementations§
Source§impl Calendar for Gregorian
impl Calendar for Gregorian
Source§fn is_gregorian() -> bool
fn is_gregorian() -> bool
If the calendar is Gregorian (since we only handle Julian and Gregorian, this
is all that needs to be defined to differentiate them)
Source§fn is_year_leap(year: i32) -> bool
fn is_year_leap(year: i32) -> bool
Answers the question: is this year a leap year?
Source§fn day_number(year: i32, month: u8, day: i64) -> Result<i64, Error>
fn day_number(year: i32, month: u8, day: i64) -> Result<i64, Error>
Converts a
year, month and (month)day into a day number which counts the number
of days from the start of the calendar epoch Read moreimpl Copy for Gregorian
Auto Trait Implementations§
impl Freeze for Gregorian
impl RefUnwindSafe for Gregorian
impl Send for Gregorian
impl Sync for Gregorian
impl Unpin for Gregorian
impl UnwindSafe for Gregorian
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