pub struct ChineseCalendar {
pub equation_of_time: f64,
pub solar_terms: Vec<SolarTerm>,
pub lunar_months: Vec<LunarMonth>,
}Expand description
The Chinese calendar around a moment: what the Four Pillars and the Purple Star chart need from the ephemeris.
Fields§
§equation_of_time: f64Apparent minus mean solar time at the moment, minutes.
solar_terms: Vec<SolarTerm>Every solar term from the last 立春 at or before the moment to the first jie term after it.
lunar_months: Vec<LunarMonth>The lunar months around the date of the moment (a few days either side).
Trait Implementations§
Source§impl Clone for ChineseCalendar
impl Clone for ChineseCalendar
Source§impl Debug for ChineseCalendar
impl Debug for ChineseCalendar
Source§impl<'de> Deserialize<'de> for ChineseCalendar
impl<'de> Deserialize<'de> for ChineseCalendar
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ChineseCalendar
impl PartialEq for ChineseCalendar
Source§impl Serialize for ChineseCalendar
impl Serialize for ChineseCalendar
impl StructuralPartialEq for ChineseCalendar
Auto Trait Implementations§
impl Freeze for ChineseCalendar
impl RefUnwindSafe for ChineseCalendar
impl Send for ChineseCalendar
impl Sync for ChineseCalendar
impl Unpin for ChineseCalendar
impl UnsafeUnpin for ChineseCalendar
impl UnwindSafe for ChineseCalendar
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