Struct calendrical_calculations::hebrew::BookHebrew
source · pub struct BookHebrew {
pub year: i32,
pub month: u8,
pub day: u8,
}
Expand description
Biblical Hebrew dates. The months are reckoned a bit strangely, with the new year occurring on Tishri (as in the civil calendar) but the months being numbered in a different order
Fields§
§year: i32
The year
month: u8
The month
day: u8
The day
Implementations§
source§impl BookHebrew
impl BookHebrew
sourcepub fn to_civil_date(self) -> (i32, u8, u8)
pub fn to_civil_date(self) -> (i32, u8, u8)
The civil calendar has the same year and day numbering as the book one, but the months are numbered differently
sourcepub fn from_civil_date(civil_year: i32, civil_month: u8, civil_day: u8) -> Self
pub fn from_civil_date(civil_year: i32, civil_month: u8, civil_day: u8) -> Self
The civil calendar has the same year and day numbering as the book one, but the months are numbered differently
sourcepub fn book_hebrew_new_year(book_year: i32) -> RataDie
pub fn book_hebrew_new_year(book_year: i32) -> RataDie
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2294
sourcepub fn days_in_book_hebrew_year(book_year: i32) -> u16
pub fn days_in_book_hebrew_year(book_year: i32) -> u16
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2315
sourcepub fn is_hebrew_leap_year(book_year: i32) -> bool
pub fn is_hebrew_leap_year(book_year: i32) -> bool
sourcepub fn last_day_of_book_hebrew_month(book_year: i32, book_month: u8) -> u8
pub fn last_day_of_book_hebrew_month(book_year: i32, book_month: u8) -> u8
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2230
sourcepub fn fixed_from_book_hebrew(date: BookHebrew) -> RataDie
pub fn fixed_from_book_hebrew(date: BookHebrew) -> RataDie
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2331
sourcepub fn book_hebrew_from_fixed(date: RataDie) -> BookHebrew
pub fn book_hebrew_from_fixed(date: RataDie) -> BookHebrew
Lisp code reference: https://github.com/EdReingold/calendar-code2/blob/main/calendar.l#L2352
Trait Implementations§
source§impl Clone for BookHebrew
impl Clone for BookHebrew
source§fn clone(&self) -> BookHebrew
fn clone(&self) -> BookHebrew
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BookHebrew
impl Debug for BookHebrew
source§impl Default for BookHebrew
impl Default for BookHebrew
source§fn default() -> BookHebrew
fn default() -> BookHebrew
source§impl Hash for BookHebrew
impl Hash for BookHebrew
source§impl Ord for BookHebrew
impl Ord for BookHebrew
source§fn cmp(&self, other: &BookHebrew) -> Ordering
fn cmp(&self, other: &BookHebrew) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for BookHebrew
impl PartialEq for BookHebrew
source§impl PartialOrd for BookHebrew
impl PartialOrd for BookHebrew
impl Copy for BookHebrew
impl Eq for BookHebrew
impl StructuralPartialEq for BookHebrew
Auto Trait Implementations§
impl Freeze for BookHebrew
impl RefUnwindSafe for BookHebrew
impl Send for BookHebrew
impl Sync for BookHebrew
impl Unpin for BookHebrew
impl UnwindSafe for BookHebrew
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)