Enum ParamValue
#[non_exhaustive]pub enum ParamValue {
Float(f64),
UInt(u32),
}Expand description
Union of value encodings used by vendor parameter sub-protocols.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Float(f64)
IEEE-754 float (typical for gains, limits).
UInt(u32)
Unsigned integer (typical for IDs, mode selectors).
Trait Implementations§
§impl Clone for ParamValue
impl Clone for ParamValue
§fn clone(&self) -> ParamValue
fn clone(&self) -> ParamValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ParamValue
impl Debug for ParamValue
§impl PartialEq for ParamValue
impl PartialEq for ParamValue
impl Copy for ParamValue
impl StructuralPartialEq for ParamValue
Auto Trait Implementations§
impl Freeze for ParamValue
impl RefUnwindSafe for ParamValue
impl Send for ParamValue
impl Sync for ParamValue
impl Unpin for ParamValue
impl UnsafeUnpin for ParamValue
impl UnwindSafe for ParamValue
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