pub struct Variable {
pub name: String,
pub vtype: VarType,
pub min: Option<f64>,
pub max: Option<f64>,
pub color: Option<String>,
pub scale: Option<String>,
pub grid: Option<i64>,
pub plottype: Option<i64>,
pub dims: Option<Vec<usize>>,
}Expand description
One variable (a dvec in the 3f5 sources) from the Variables: table.
The optional attributes mirror the “strange options” the 3f5 reader
accepts on a variable line: min=, max=, color=, scale=,
grid=, plot=, dims=.
Fields§
§name: String§vtype: VarType§min: Option<f64>§max: Option<f64>§color: Option<String>§scale: Option<String>Name of another vector used as this one’s scale.
grid: Option<i64>§plottype: Option<i64>§dims: Option<Vec<usize>>Per-vector dimensions, only when different from the plot default.
Their product is the vector’s true length, which may be shorter
than the plot’s No. Points (the rest is padding when the plot
is padded).
Implementations§
Trait Implementations§
impl StructuralPartialEq for Variable
Auto Trait Implementations§
impl Forget for Variable
impl Freeze for Variable
impl Move for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnsafeUnpin for Variable
impl UnwindSafe for Variable
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