pub enum ParamRange {
Linear {
min: f64,
max: f64,
},
Skewed {
min: f64,
max: f64,
factor: f64,
},
Stepped {
min: i32,
max: i32,
},
}Expand description
Parameter value range definition.
Variants§
Linear
Linear range from min to max.
Skewed
Skewed range with exponential/logarithmic scaling. Factor > 1.0 = logarithmic, factor < 1.0 = exponential.
Stepped
Integer stepped range (for enums, switches).
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 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