pub enum Transform {
Linear,
Exponential,
Logarithmic,
Inverted,
Custom(Arc<dyn Fn(f32) -> f32 + Send + Sync>),
}Expand description
Transfer function applied to a normalized [0,1] value before scaling to parameter range.
Variants§
Linear
Identity: value passes through unchanged.
Exponential
Square mapping: finer control near zero, coarser near one.
Logarithmic
Logarithmic mapping: finer control near maximum.
Inverted
Reversed mapping: 1.0 becomes min, 0.0 becomes max.
Custom(Arc<dyn Fn(f32) -> f32 + Send + Sync>)
User-defined custom transfer function.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transform
impl !RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl !UnwindSafe for Transform
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