pub struct Drawbars(/* private fields */);Expand description
Nine drawbar positions, nibble-packed high-nibble first — the on-disk form every organ model shares.
Positions are physical, 0..=8, stored identity. Decoding is total: a nibble outside
that range is preserved rather than refused. Drawbars::new refuses one on the way
in.
Per-model display transforms — Farfisa’s on/off threshold, Vox’s ignored 8th bar, the b3-bass remap — are not applied here.
Implementations§
Trait Implementations§
impl Copy for Drawbars
impl Eq for Drawbars
Source§impl Packed for Drawbars
impl Packed for Drawbars
Source§const CONTROL: ControlKind
const CONTROL: ControlKind
The whole register in one field, so the first bar is the leftmost one and the nibbles run down from the top of the slot.
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 = Self::MAX_BITS
const DECODE_BITS: u32 = Self::MAX_BITS
Widest slot this type can decode without losing bits on re-encoding. Read more
Source§type Error = !
type Error = !
Why a bit pattern is not a valid value.
Infallible when every pattern is.impl StructuralPartialEq for Drawbars
Auto Trait Implementations§
impl Freeze for Drawbars
impl RefUnwindSafe for Drawbars
impl Send for Drawbars
impl Sync for Drawbars
impl Unpin for Drawbars
impl UnsafeUnpin for Drawbars
impl UnwindSafe for Drawbars
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> 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.