fn is_multiple_output(&self, date: Date) -> Result<bool, TimeSeriesError> {
        let temp: Date;
        let day_lim: i32;

        if self.forwards() {
            temp = date;
            day_lim = self.days;
        } else {
            temp = self.add_days(date)?;
            day_lim = 1 - self.days;
        }

        let (year, month) = self.add_ym(temp);
        let to = days_in_year_month(year, month) as i32;
        let from = days_in_year_month(temp.year(), temp.month()) as i32;

        Ok(temp.day() as i32 > from - cmp::min(cmp::max(to - from, 0), cmp::max(day_lim, 1)))
    }
/// Determine if the date plus duration will give rise to multiple outputs
Determine if the date plus duration will give rise to multiple outputs
Determine if the date plus duration will give rise to multiple outputs
fn is_multiple_output(&self, date: Date) -> Result<bool, TimeSeriesError> {
        let temp: Date;
        let day_lim: i32;
        if self.forwards() {
            temp = date;
            day_lim = self.days;
        } else {
            temp = self.add_days(date)?;
            day_lim = 1 - self.days;
        }
        let (year, month) = self.add_ym(temp);
        let to = days_in_year_month(year, month) as i32;
        let from = days_in_year_month(temp.year(), temp.month()) as i32;
        Ok(temp.day() as i32 > from - cmp::min(cmp::max(to - from, 0), cmp::max(day_lim, 1)))
    }
fn is_multiple_output ( & self , date : Date ) -> Result < bool , TimeSeriesError > { let temp : Date ; let day_lim : i32 ; if self . forwards ( ) { temp = date ; day_lim = self . days ; } else { temp = self . add_days ( date ) ? ; day_lim = 1 - self . days ; } let ( year , month ) = self . add_ym ( temp ) ; let to = days_in_year_month ( year , month ) as i32 ; let from = days_in_year_month ( temp . year ( ) , temp . month ( ) ) as i32 ; Ok ( temp . day ( ) as i32 > from - cmp :: min ( cmp :: max ( to - from , 0 ) , cmp :: max ( day_lim , 1 ) ) ) }
Determine if the date plus duration will give rise to multiple outputs
Determine if the date plus duration will give rise to multiple outputs
&self
date
Date
&self
date
Date