pub struct ParamSpec {
pub name: &'static str,
pub id_suffix: &'static str,
pub range: ParamRange,
pub default: f64,
pub unit: &'static str,
pub group: Option<&'static str>,
}Expand description
Specification for a single parameter.
Fields§
§name: &'static strDisplay name of the parameter (e.g., “Frequency”).
id_suffix: &'static strID suffix for this parameter (e.g., “frequency”). Full ID will be prefixed with processor name: “my_filter_frequency”
range: ParamRangeValue range for this parameter.
default: f64Default value.
unit: &'static strUnit string (e.g., “dB”, “Hz”, “%”).
group: Option<&'static str>Optional group name for UI organization (e.g., “Input”, “Processing”, “Output”).
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