pub struct DailyPeriod { /* private fields */ }Expand description
One 流日 period with independent day pillar and temporal Life palace facts.
Implementations§
Source§impl DailyPeriod
impl DailyPeriod
Sourcepub const fn index(&self) -> usize
pub const fn index(&self) -> usize
Returns the zero-based upstream daily index in Yin-first order.
Sourcepub const fn lunar_day(&self) -> u8
pub const fn lunar_day(&self) -> u8
Returns the one-based target lunar day this period describes.
Sourcepub const fn stem_branch(&self) -> StemBranch
pub const fn stem_branch(&self) -> StemBranch
Returns the target day stem-branch pair used for flow stars and mutagens.
Sourcepub const fn palace_branch(&self) -> EarthlyBranch
pub const fn palace_branch(&self) -> EarthlyBranch
Returns the branch selected as the daily temporal Life palace.
Sourcepub const fn palace_layout(&self) -> &TemporalPalaceLayout
pub const fn palace_layout(&self) -> &TemporalPalaceLayout
Returns the temporal palace-name layout for this daily period.
Trait Implementations§
Source§impl Clone for DailyPeriod
impl Clone for DailyPeriod
Source§fn clone(&self) -> DailyPeriod
fn clone(&self) -> DailyPeriod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DailyPeriod
impl Debug for DailyPeriod
Source§impl<'de> Deserialize<'de> for DailyPeriod
impl<'de> Deserialize<'de> for DailyPeriod
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
impl Eq for DailyPeriod
Source§impl PartialEq for DailyPeriod
impl PartialEq for DailyPeriod
Source§fn eq(&self, other: &DailyPeriod) -> bool
fn eq(&self, other: &DailyPeriod) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DailyPeriod
impl Serialize for DailyPeriod
impl StructuralPartialEq for DailyPeriod
Auto Trait Implementations§
impl Freeze for DailyPeriod
impl RefUnwindSafe for DailyPeriod
impl Send for DailyPeriod
impl Sync for DailyPeriod
impl Unpin for DailyPeriod
impl UnsafeUnpin for DailyPeriod
impl UnwindSafe for DailyPeriod
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