pub enum PlotType<'a> {
Line {
label: &'a str,
x_data: &'a [f64],
y_data: &'a [f64],
},
Scatter {
label: &'a str,
x_data: &'a [f64],
y_data: &'a [f64],
},
Bar {
label: &'a str,
values: &'a [f64],
width: f64,
},
Histogram {
label: &'a str,
values: &'a [f64],
bins: i32,
},
Heatmap {
label: &'a str,
values: &'a [f64],
rows: usize,
cols: usize,
},
PieChart {
labels: Vec<&'a str>,
values: &'a [f64],
center: (f64, f64),
radius: f64,
},
}Expand description
Enum representing different plot types
Variants§
Auto Trait Implementations§
impl<'a> Freeze for PlotType<'a>
impl<'a> RefUnwindSafe for PlotType<'a>
impl<'a> Send for PlotType<'a>
impl<'a> Sync for PlotType<'a>
impl<'a> Unpin for PlotType<'a>
impl<'a> UnwindSafe for PlotType<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more