pub enum Dimension {
Real {
low: f64,
high: f64,
log: bool,
},
Int {
low: i64,
high: i64,
},
Choice(Vec<String>),
}Expand description
One knob and what it may be. Three kinds and not more: a bool is a Choice
of two, and a power of two between 16 and 512 is an Int read as a log.
Not here: a conditional dimension, which needs a consumer first.
Variants§
Real
Anything between the two.
Fields
Int
A whole number between the two, both included.
Choice(Vec<String>)
One of these, by name. Nothing is read into their order.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Dimension
Auto Trait Implementations§
impl Freeze for Dimension
impl RefUnwindSafe for Dimension
impl Send for Dimension
impl Sync for Dimension
impl Unpin for Dimension
impl UnsafeUnpin for Dimension
impl UnwindSafe for Dimension
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