Struct histogram::HistogramConfig
[−]
[src]
pub struct HistogramConfig { // some fields omitted }
Methods
impl HistogramConfig
[src]
fn new() -> HistogramConfig
fn precision(&mut self, precision: u32) -> &mut Self
set HistogramConfig precision
Example
let mut c = HistogramConfig::new(); c.precision(4); // set to 4 significant figures
fn max_memory(&mut self, bytes: u32) -> &mut Self
set HistogramConfig memory limit
Example
let mut c = HistogramConfig::new(); c.max_memory(1024*1024); // cap Histogram at 1MB of data
fn max_value(&mut self, max: u64) -> &mut Self
set HistogramConfig value limit
Example
let mut c = HistogramConfig::new(); c.max_value(1000); // values above 1000 will not be stored
Trait Implementations
impl Copy for HistogramConfig
[src]
impl Clone for HistogramConfig
[src]
fn clone(&self) -> HistogramConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more