1pub mod area;
2pub mod axis;
3pub mod bar;
4pub mod contour;
5pub mod contour_fill;
6pub mod errorbar;
7pub mod histogram;
8pub mod image;
9pub mod line;
10pub mod line3;
11pub mod quiver;
12pub mod scatter2;
13pub mod scatter3;
14pub mod shaders;
15pub mod stairs;
16pub mod stem;
17pub mod surface;
18pub mod tuning;
19pub mod util;
20
21#[derive(Clone, Copy, Debug, PartialEq, Eq)]
22pub enum ScalarType {
23 F32,
24 F64,
25}
26
27impl ScalarType {
28 pub fn from_is_f64(is_f64: bool) -> Self {
29 if is_f64 {
30 ScalarType::F64
31 } else {
32 ScalarType::F32
33 }
34 }
35}