Trait CalendarAdjustment

Source
pub trait CalendarAdjustment {
    // Provided methods
    fn adjust(
        &self,
        udate: &NaiveDateTime,
        adjuster: &Adjuster,
    ) -> NaiveDateTime
       where Self: Sized + DateRoll { ... }
    fn adjusts(
        &self,
        udates: &Vec<NaiveDateTime>,
        adjuster: &Adjuster,
    ) -> Vec<NaiveDateTime>
       where Self: Sized + DateRoll { ... }
}
Expand description

Perform date adjustment according to adjustment rules, i.e. a given Adjuster.

Provided Methods§

Source

fn adjust(&self, udate: &NaiveDateTime, adjuster: &Adjuster) -> NaiveDateTime
where Self: Sized + DateRoll,

Adjust a date under an adjustment rule.

Source

fn adjusts( &self, udates: &Vec<NaiveDateTime>, adjuster: &Adjuster, ) -> Vec<NaiveDateTime>
where Self: Sized + DateRoll,

Adjust a vector of dates under an adjustment rule;

Implementors§