Histogram

Trait Histogram 

Source
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§

Source

fn print_histogram(&self, printer: &mut dyn Printer)

Prints the histogram on the given Printer instance.

Source

fn clear_histogram(&mut self)

Clears the histogram data.

Source

fn to_log_histogram(&self) -> Option<LogHistogramBox>

Returns the corresponding LogHistogramBox if possible.

Source

fn to_float_histogram(&self) -> Option<FloatHistogramBox>

Returns the corresponding FloatHistogramBox if possible.

Implementors§