pub enum KnobKind {
Continuous,
Enum {
options: Vec<String>,
},
Octave,
}Expand description
What kind of control a knob is.
Variants§
Continuous
Continuous parameter, normalized [0, 1] (an F64 trace site).
Enum
A small enum selector (a Usize trace site); value is the index.
Octave
Octave selector: Usize site 0..=4, displayed as −2..=+2.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KnobKind
impl<'de> Deserialize<'de> for KnobKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for KnobKind
Auto Trait Implementations§
impl Freeze for KnobKind
impl RefUnwindSafe for KnobKind
impl Send for KnobKind
impl Sync for KnobKind
impl Unpin for KnobKind
impl UnsafeUnpin for KnobKind
impl UnwindSafe for KnobKind
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