pub struct LunarDate {
pub year: i32,
pub month: u8,
pub leap: bool,
pub day: u8,
pub year_stem: &'static str,
pub year_branch: &'static str,
pub animal: &'static str,
}Expand description
A date of the lunisolar calendar.
Fields§
§year: i32The lunar year: the Gregorian year its New Year falls in.
month: u8Month number, 1-12.
leap: boolWhether the month is intercalary.
day: u8Day of the month, 1-30.
year_stem: &'static strStem of the lunar year.
year_branch: &'static strBranch of the lunar year.
animal: &'static strAnimal of the lunar year: the popular “Chinese zodiac sign”, which changes at the New Year rather than at 立春.
Trait Implementations§
impl StructuralPartialEq for LunarDate
Auto Trait Implementations§
impl Freeze for LunarDate
impl RefUnwindSafe for LunarDate
impl Send for LunarDate
impl Sync for LunarDate
impl Unpin for LunarDate
impl UnsafeUnpin for LunarDate
impl UnwindSafe for LunarDate
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