pub struct ParamInfo {
pub id: u32,
pub name: &'static str,
pub short_name: &'static str,
pub group: &'static str,
pub range: ParamRange,
pub default_plain: f64,
pub flags: ParamFlags,
pub unit: ParamUnit,
pub kind: ParamValueKind,
}Expand description
Metadata for a single parameter, used by format wrappers.
Copy because every field is POD (&'static str, scalars,
bitflags, the ParamRange / ParamUnit enums). Lets the
audio path pass param_infos[i] by value without clone() noise.
Fields§
§id: u32§name: &'static str§short_name: &'static str§group: &'static str§range: ParamRange§default_plain: f64§flags: ParamFlags§unit: ParamUnit§kind: ParamValueKindWhich *Param type backs this entry. Drives display rounding
(IntParam skips fractional digits) and value_text parsing,
independently of ParamRange - a FloatParam declared with
range = "discrete(...)" should still format as a float, so
inferring kind from range alone is wrong.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParamInfo
impl RefUnwindSafe for ParamInfo
impl Send for ParamInfo
impl Sync for ParamInfo
impl Unpin for ParamInfo
impl UnsafeUnpin for ParamInfo
impl UnwindSafe for ParamInfo
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