pub enum YearBoundary {
ChineseNewYearEve,
LiChun,
}Expand description
年分界: the effective astrological year boundary (yearDivide).
This mirrors upstream TS iztro@2.5.8 yearDivide. It selects which boundary
separates one cyclic birth year (and year pillar) from the next. It is an
input calculation policy for a supported field; it does not define a new
algorithm or chart plane.
Variants§
ChineseNewYearEve
年分界:按除夕. The cyclic year changes at the lunar new year (正月初一),
upstream yearDivide: 'normal'. This is the default and preserves
existing iztro-rs behaviour.
LiChun
年分界:按立春. The cyclic year changes at 立春 (LiChun), upstream
yearDivide: 'exact', resolved at date granularity.
Trait Implementations§
Source§impl Clone for YearBoundary
impl Clone for YearBoundary
Source§fn clone(&self) -> YearBoundary
fn clone(&self) -> YearBoundary
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 moreimpl Copy for YearBoundary
Source§impl Debug for YearBoundary
impl Debug for YearBoundary
Source§impl Default for YearBoundary
impl Default for YearBoundary
Source§fn default() -> YearBoundary
fn default() -> YearBoundary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for YearBoundary
impl<'de> Deserialize<'de> for YearBoundary
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 YearBoundary
Source§impl Hash for YearBoundary
impl Hash for YearBoundary
Source§impl PartialEq for YearBoundary
impl PartialEq for YearBoundary
Source§fn eq(&self, other: &YearBoundary) -> bool
fn eq(&self, other: &YearBoundary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for YearBoundary
impl Serialize for YearBoundary
impl StructuralPartialEq for YearBoundary
Auto Trait Implementations§
impl Freeze for YearBoundary
impl RefUnwindSafe for YearBoundary
impl Send for YearBoundary
impl Sync for YearBoundary
impl Unpin for YearBoundary
impl UnsafeUnpin for YearBoundary
impl UnwindSafe for YearBoundary
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