Skip to main content

BarValue

Trait BarValue 

Source
pub trait BarValue: Copy {
    // Required method
    fn bar(self) -> f64;
}
Expand description

A bar height HistPlot can draw: whole counts, or any non-negative real value (a summed signal, a log statistic).

Required Methods§

Source

fn bar(self) -> f64

The bar’s height in count units.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BarValue for f64

Source§

fn bar(self) -> f64

Source§

impl BarValue for usize

Source§

fn bar(self) -> f64

Implementors§