pub struct ParamSpec {
pub id: ParamId,
pub name: &'static str,
pub short_name: &'static str,
pub unit: &'static str,
pub default: f32,
pub min: f32,
pub max: f32,
pub step: f32,
}Expand description
Specification for a single parameter.
Fields§
§id: ParamIdUnique parameter ID
name: &'static strFull display name (e.g., “Gain”)
short_name: &'static strShort name for compact displays (e.g., “Gain”)
unit: &'static strUnit suffix (e.g., “dB”)
default: f32Default value
min: f32Minimum value
max: f32Maximum value
step: f32Step size for UI controls (0.0 = continuous)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpec
impl Unpin for ParamSpec
impl UnwindSafe for ParamSpec
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