pub fn update(&mut self, new_val: (Date, T)) {
        if let Some(idx) = self.timeline.index_at(new_val.0) {
            self.values[idx] = new_val.1;
        };
    }
/// Update the `TimeSeries` in place. Will over-write the value at the
/// date with the supplied value. Use `.update_add()` if you want to add the
/// new value to the current value at the date
Update the `TimeSeries` in place. Will over-write the value at the
date with the supplied value. Use `.update_add()` if you want to add the
new value to the current value at the date
Update the ` TimeSeries ` in place . Will over - write the value at the date with the supplied value . Use ` . update_add () ` if you want to add the new value to the current value at the date
pub fn update(&mut self, new_val: (Date, T)) {
        if let Some(idx) = self.timeline.index_at(new_val.0) {
            self.values[idx] = new_val.1;
        };
    }
pub fn update ( & mut self , new_val : ( Date , T ) ) { if let Some ( idx ) = self . timeline . index_at ( new_val . 0 ) { 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)