pub struct ControlDef {
pub component: String,
pub property: String,
pub label: String,
pub range: (f64, f64),
pub default: f64,
}Expand description
Control mapping: Gain.position -> "Drive" [0.0, 1.0] = 0.5
Fields§
§component: String§property: String§label: String§range: (f64, f64)§default: f64Trait Implementations§
Source§impl Clone for ControlDef
impl Clone for ControlDef
Source§fn clone(&self) -> ControlDef
fn clone(&self) -> ControlDef
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 moreSource§impl Debug for ControlDef
impl Debug for ControlDef
Source§impl PartialEq for ControlDef
impl PartialEq for ControlDef
Source§fn eq(&self, other: &ControlDef) -> bool
fn eq(&self, other: &ControlDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlDef
Auto Trait Implementations§
impl Freeze for ControlDef
impl RefUnwindSafe for ControlDef
impl Send for ControlDef
impl Sync for ControlDef
impl Unpin for ControlDef
impl UnsafeUnpin for ControlDef
impl UnwindSafe for ControlDef
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