pub struct LevelOf<const FULL: u8> { /* private fields */ }Expand description
A continuous control on the panel’s own 0..10 — level, compression, gain, tone.
FULL is the stored value the panel reads as 10, and so also fixes the slot’s width.
Use the Level and Level6 aliases rather than naming it — nearly every one of
these is the seven-bit 0..=127, and the Stage 4 puts a few of the same knobs in six
bits.
⚠️ A 0..=127 slot is not automatically one of these. An envelope stage reads in
milliseconds, a filter cutoff in hertz, an equalizer band in decibels either side of a
centre — see Time, Frequency, Rate and Bipolar. Typing one of those as a
Level makes the panel reading wrong rather than merely absent.
Implementations§
Trait Implementations§
impl<const FULL: u8> Copy for LevelOf<FULL>
impl<const FULL: u8> Eq for LevelOf<FULL>
Source§impl<const FULL: u8> Ord for LevelOf<FULL>
impl<const FULL: u8> Ord for LevelOf<FULL>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<const FULL: u8> Packed for LevelOf<FULL>
impl<const FULL: u8> Packed for LevelOf<FULL>
Source§const MAX_BITS: u32
const MAX_BITS: u32
Bits the widest value of this type occupies. Used to check statically that it
fits its slot.
Source§const DECODE_BITS: u32 = u8::BITS
const DECODE_BITS: u32 = u8::BITS
Widest slot this type can decode without losing bits on re-encoding. Read more
Source§const CONTROL: ControlKind
const CONTROL: ControlKind
Which panel control this value is, for a caller building an interface over the
field registry. Read more
Source§type Error = ParseError
type Error = ParseError
Why a bit pattern is not a valid value.
Infallible when every pattern is.Source§impl<const FULL: u8> PartialOrd for LevelOf<FULL>
impl<const FULL: u8> PartialOrd for LevelOf<FULL>
impl<const FULL: u8> StructuralPartialEq for LevelOf<FULL>
Auto Trait Implementations§
impl<const FULL: u8> Freeze for LevelOf<FULL>
impl<const FULL: u8> RefUnwindSafe for LevelOf<FULL>
impl<const FULL: u8> Send for LevelOf<FULL>
impl<const FULL: u8> Sync for LevelOf<FULL>
impl<const FULL: u8> Unpin for LevelOf<FULL>
impl<const FULL: u8> UnsafeUnpin for LevelOf<FULL>
impl<const FULL: u8> UnwindSafe for LevelOf<FULL>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.