pub struct ParamDef {
pub id: &'static str,
pub name: &'static str,
pub param_type: ParamType,
}Expand description
Parameter definition for programmatic declaration.
Use the const fn constructors to build parameter definitions:
ⓘ
const PARAMETERS: &[ParamDef] = &[
ParamDef::float("GAIN", "Gain", -60.0, 30.0, 0.0),
ParamDef::bool("MONO", "Mono", false),
ParamDef::choice("MODE", "Mode", &["A", "B", "C"], 0),
];Fields§
§id: &'static strParameter ID (used for code generation, e.g., “GAIN” → PARAM_GAIN).
name: &'static strDisplay name shown in the UI.
param_type: ParamTypeParameter type and configuration.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamDef
impl RefUnwindSafe for ParamDef
impl Send for ParamDef
impl Sync for ParamDef
impl Unpin for ParamDef
impl UnwindSafe for ParamDef
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