pub trait Histogram {
// Required methods
fn print_histogram(&self, printer: &mut dyn Printer);
fn clear_histogram(&mut self);
fn to_log_histogram(&self) -> Option<LogHistogramBox>;
fn to_float_histogram(&self) -> Option<FloatHistogramBox>;
}Expand description
The Histogram trait defines an interface for using a LogHistogram or FloatHistogram instance.
Required Methods§
Sourcefn print_histogram(&self, printer: &mut dyn Printer)
fn print_histogram(&self, printer: &mut dyn Printer)
Prints the histogram on the given Printer instance.
Sourcefn clear_histogram(&mut self)
fn clear_histogram(&mut self)
Clears the histogram data.
Sourcefn to_log_histogram(&self) -> Option<LogHistogramBox>
fn to_log_histogram(&self) -> Option<LogHistogramBox>
Returns the corresponding LogHistogramBox if possible.
Sourcefn to_float_histogram(&self) -> Option<FloatHistogramBox>
fn to_float_histogram(&self) -> Option<FloatHistogramBox>
Returns the corresponding FloatHistogramBox if possible.