pub enum ParamRange {
Linear {
min: f64,
max: f64,
},
Skewed {
min: f64,
max: f64,
factor: f64,
},
Stepped {
min: i32,
max: i32,
},
Enum {
variants: &'static [&'static str],
},
}Expand description
Parameter value range definition.
Variants§
Linear
Linear range from min to max.
Skewed
Skewed range with exponential/logarithmic scaling.
factor > 1.0 produces logarithmic-style skew; factor < 1.0 produces exponential-style skew.
Stepped
Integer stepped range (for enums, switches).
Enum
Enumerated parameter with named variants.
Index 0 corresponds to the first variant, 1 to the second, etc.
Trait Implementations§
Source§impl Clone for ParamRange
impl Clone for ParamRange
Source§fn clone(&self) -> ParamRange
fn clone(&self) -> ParamRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParamRange
impl RefUnwindSafe for ParamRange
impl Send for ParamRange
impl Sync for ParamRange
impl Unpin for ParamRange
impl UnsafeUnpin for ParamRange
impl UnwindSafe for ParamRange
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