enum RuleDay {
Julian1WithoutLeap(u16),
Julian0WithLeap(u16),
MonthWeekday {
month: u8,
week: u8,
week_day: u8,
},
}
Expand description
Transition rule day
Variants§
Julian1WithoutLeap(u16)
Julian day in [1, 365]
, without taking occasional Feb 29 into account, which is not referenceable
Julian0WithLeap(u16)
Zero-based Julian day in [0, 365]
, taking occasional Feb 29 into account
MonthWeekday
Day represented by a month, a month week and a week day
Implementations§
source§impl RuleDay
impl RuleDay
sourcefn parse(
cursor: &mut Cursor<'_>,
use_string_extensions: bool,
) -> Result<(Self, i32), Error>
fn parse( cursor: &mut Cursor<'_>, use_string_extensions: bool, ) -> Result<(Self, i32), Error>
Parse transition rule
sourcefn julian_1(julian_day_1: u16) -> Result<Self, Error>
fn julian_1(julian_day_1: u16) -> Result<Self, Error>
Construct a transition rule day represented by a Julian day in [1, 365]
, without taking occasional Feb 29 into account, which is not referenceable
sourceconst fn julian_0(julian_day_0: u16) -> Result<Self, Error>
const fn julian_0(julian_day_0: u16) -> Result<Self, Error>
Construct a transition rule day represented by a zero-based Julian day in [0, 365]
, taking occasional Feb 29 into account
sourcefn month_weekday(month: u8, week: u8, week_day: u8) -> Result<Self, Error>
fn month_weekday(month: u8, week: u8, week_day: u8) -> Result<Self, Error>
Construct a transition rule day represented by a month, a month week and a week day
Trait Implementations§
source§impl PartialEq for RuleDay
impl PartialEq for RuleDay
impl Copy for RuleDay
impl Eq for RuleDay
impl StructuralPartialEq for RuleDay
Auto Trait Implementations§
impl Freeze for RuleDay
impl RefUnwindSafe for RuleDay
impl Send for RuleDay
impl Sync for RuleDay
impl Unpin for RuleDay
impl UnwindSafe for RuleDay
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