pub struct Julian;Trait Implementations§
Source§impl Calendar for Julian
impl Calendar for Julian
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 Julian
Auto Trait Implementations§
impl Freeze for Julian
impl RefUnwindSafe for Julian
impl Send for Julian
impl Sync for Julian
impl Unpin for Julian
impl UnwindSafe for Julian
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