fn update<F, T>(&mut self, updater: F) -> T
    where
        F: FnOnce(&mut [Channel]) -> T,
    {
        let ret = updater(self.channels);
        self.update_cache();
        ret
    }
/// Updates the vector given an updater and recomputes the total value.
Updates the vector given an updater and recomputes the total value.
Updates the vector given an updater and recomputes the total value .
fn update<F, T>(&mut self, updater: F) -> T
    where
        F: FnOnce(&mut [Channel]) -> T,
    {
        let ret = updater(self.channels);
        self.update_cache();
        ret
    }
fn update < F , T > ( & mut self , updater : F ) -> T where F : FnOnce ( & mut [ Channel ] ) -> T , { let ret = updater ( self . channels ) ; self . update_cache ( ) ; ret }
Updates the vector given an updater and recomputes the total value.
Updates the vector given an updater and recomputes the total value .
&mut self
updater
F
&mut self
updater
F