Trait Adjustment

Source
pub trait Adjustment {
    // Required methods
    fn adjust<T: DateRoll>(
        &self,
        udate: &NaiveDateTime,
        calendar: &T,
    ) -> NaiveDateTime;
    fn adjusts<T: DateRoll>(
        &self,
        udates: &Vec<NaiveDateTime>,
        calendar: &T,
    ) -> Vec<NaiveDateTime>;
}
Expand description

Perform date adjustment according to calendar definitions, i.e. a known DateRoll.

Required Methods§

Source

fn adjust<T: DateRoll>( &self, udate: &NaiveDateTime, calendar: &T, ) -> NaiveDateTime

Adjust a date under an adjustment rule.

Source

fn adjusts<T: DateRoll>( &self, udates: &Vec<NaiveDateTime>, calendar: &T, ) -> Vec<NaiveDateTime>

Adjust a vector of dates under an adjustment rule;

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§