pub struct Dialect {
pub addr_encoding: AddrEncoding,
pub float_encoding: FloatEncoding,
}
Expand description
Dialect represents the different encodings between devices
Fields§
§addr_encoding: AddrEncoding
Length of addresses sent (either 3 (default) or 2)
float_encoding: FloatEncoding
Encoding for floating point values
Implementations§
Source§impl Dialect
impl Dialect
pub const fn const_default() -> Self
Source§impl Dialect
impl Dialect
pub fn addr(&self, value: u16) -> Addr
pub fn float(&self, value: f32) -> Value
pub fn db(&self, value: f32) -> Value
pub fn int(&self, value: u16) -> Value
pub fn delay(&self, num_samples: u32) -> Value
pub fn mute(&self, mute: bool) -> Value
pub fn invert(&self, value: bool) -> Value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnwindSafe for Dialect
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