pub trait Store {
Show 14 methods
// Required methods
fn add(&mut self, index: i32, count: f64);
fn add_bin(&mut self, bin: (i32, f64));
fn clear(&mut self);
fn is_empty(&self) -> bool;
fn get_total_count(&mut self) -> f64;
fn get_min_index(&self) -> i32;
fn get_max_index(&self) -> i32;
fn get_descending_stream(&mut self) -> Vec<(i32, f64)>;
fn get_ascending_stream(&mut self) -> Vec<(i32, f64)>;
fn get_descending_iter(&mut self) -> StoreIter<'_> ⓘ;
fn get_ascending_iter(&mut self) -> StoreIter<'_> ⓘ;
fn foreach<F>(&mut self, acceptor: F)
where F: FnMut(i32, f64);
// Provided methods
fn merge_with(&mut self, store: &mut impl Store) { ... }
fn decode_and_merge_with(
&mut self,
input: &mut impl Input,
mode: BinEncodingMode
) -> Result<(), Error> { ... }
}