pub struct ParamSpec {
pub name: &'static str,
pub kind: ParamKind,
pub min: f64,
pub max: f64,
pub default: ParamValue,
pub unit: &'static str,
}Expand description
A parameter a plugin takes.
Fields§
§name: &'static str§kind: ParamKind§min: f64The lowest allowed value (floats only).
max: f64The highest allowed value (floats only).
default: ParamValue§unit: &'static str"dB", "Hz", "" and so on, for display.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ParamSpec
Auto Trait Implementations§
impl Forget for ParamSpec
impl Freeze for ParamSpec
impl Move for ParamSpec
impl RefUnwindSafe for ParamSpec
impl Send for ParamSpec
impl Sync for ParamSpecwhere
RawVecInner: Sync,
impl Unpin for ParamSpec
impl UnsafeUnpin for ParamSpecwhere
&'static str: UnsafeUnpin,
&'static [&'static str]: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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