PlotData

Trait PlotData 

Source
pub trait PlotData {
    // Required methods
    fn label(&self) -> &str;
    fn data_len(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn validate(&self) -> Result<(), PlotError> { ... }
}
Expand description

Common trait for plot data validation

Required Methods§

Source

fn label(&self) -> &str

Get the label for this plot

Source

fn data_len(&self) -> usize

Get the length of the data

Provided Methods§

Source

fn is_empty(&self) -> bool

Check if the data is empty

Source

fn validate(&self) -> Result<(), PlotError>

Validate the data for plotting

Implementors§