pub struct YearBounds {
    pub new_year: RataDie,
    pub next_new_year: RataDie,
}Expand description
Marks the bounds of a lunar year
Fields§
§new_year: RataDieThe date marking the start of the current lunar year
next_new_year: RataDieThe date marking the start of the next lunar year
Implementations§
Source§impl YearBounds
 
impl YearBounds
Sourcepub fn compute<C: ChineseBased>(date: RataDie) -> Self
 
pub fn compute<C: ChineseBased>(date: RataDie) -> Self
Compute the YearBounds for the lunar year (年) containing date,
as well as the corresponding solar year (歲). Note that since the two
years overlap significantly but not entirely, the solstice bounds for the solar
year may not include date.
Sourcepub fn count_days(self) -> u16
 
pub fn count_days(self) -> u16
The number of days in this year
Trait Implementations§
Source§impl Clone for YearBounds
 
impl Clone for YearBounds
Source§fn clone(&self) -> YearBounds
 
fn clone(&self) -> YearBounds
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 moreSource§impl Debug for YearBounds
 
impl Debug for YearBounds
impl Copy for YearBounds
Auto Trait Implementations§
impl Freeze for YearBounds
impl RefUnwindSafe for YearBounds
impl Send for YearBounds
impl Sync for YearBounds
impl Unpin for YearBounds
impl UnwindSafe for YearBounds
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