pub fn update_add(&mut self, new_val: (Date, T)) {
        if let Some(idx) = self.timeline.index_at(new_val.0) {
            self.values[idx] = self.values[idx] + new_val.1;
        };
    }
/// Update the `TimeSeries` in place. Will add the supplied value to
/// the value already at the date
Update the `TimeSeries` in place. Will add the supplied value to
the value already at the date
Update the ` TimeSeries ` in place . Will add the supplied value to the value already at the date
pub fn update_add(&mut self, new_val: (Date, T)) {
        if let Some(idx) = self.timeline.index_at(new_val.0) {
            self.values[idx] = self.values[idx] + new_val.1;
        };
    }
pub fn update_add ( & mut self , new_val : ( Date , T ) ) { if let Some ( idx ) = self . timeline . index_at ( new_val . 0 ) { self . values [ idx ] = self . values [ idx ] + new_val . 1 ; } ; }
Update the `TimeSeries` in place.
Update the ` TimeSeries ` in place .
&mut self
new_val
(Date, T)
&mut self
new_val
(Date, T)