pub struct OctaveShiftNibble { /* private fields */ }Expand description
A four-bit octave shift stored in two’s complement, as the Stage 4 stores it.
Inferred from specimens; not confirmed on hardware. Over the Stage 4 factory programs
the slot holds only 0, 1, 2, 14 and 15 — a distribution centred on zero with the
negative side wrapping, where the Stage 2 and 3 instead centre on a stored 7 and 6.
Those two are OctaveShift aliases; this is the third encoding.
Implementations§
Trait Implementations§
Source§impl Clone for OctaveShiftNibble
impl Clone for OctaveShiftNibble
Source§fn clone(&self) -> OctaveShiftNibble
fn clone(&self) -> OctaveShiftNibble
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 moreimpl Copy for OctaveShiftNibble
Source§impl Debug for OctaveShiftNibble
impl Debug for OctaveShiftNibble
Source§impl Default for OctaveShiftNibble
impl Default for OctaveShiftNibble
Source§fn default() -> OctaveShiftNibble
fn default() -> OctaveShiftNibble
Returns the “default value” for a type. Read more
Source§impl Display for OctaveShiftNibble
impl Display for OctaveShiftNibble
impl Eq for OctaveShiftNibble
Source§impl Hash for OctaveShiftNibble
impl Hash for OctaveShiftNibble
Source§impl Ord for OctaveShiftNibble
impl Ord for OctaveShiftNibble
Source§fn cmp(&self, other: &OctaveShiftNibble) -> Ordering
fn cmp(&self, other: &OctaveShiftNibble) -> Ordering
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 Packed for OctaveShiftNibble
impl Packed for OctaveShiftNibble
Source§const MAX_BITS: u32 = 4
const MAX_BITS: u32 = 4
Bits the widest value of this type occupies. Used to check statically that it
fits its slot.
Source§const DECODE_BITS: u32 = 4
const DECODE_BITS: u32 = 4
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 = !
type Error = !
Why a bit pattern is not a valid value.
Infallible when every pattern is.Source§impl PartialEq for OctaveShiftNibble
impl PartialEq for OctaveShiftNibble
Source§impl PartialEq<i8> for OctaveShiftNibble
impl PartialEq<i8> for OctaveShiftNibble
Source§impl PartialOrd for OctaveShiftNibble
impl PartialOrd for OctaveShiftNibble
impl StructuralPartialEq for OctaveShiftNibble
Auto Trait Implementations§
impl Freeze for OctaveShiftNibble
impl RefUnwindSafe for OctaveShiftNibble
impl Send for OctaveShiftNibble
impl Sync for OctaveShiftNibble
impl Unpin for OctaveShiftNibble
impl UnsafeUnpin for OctaveShiftNibble
impl UnwindSafe for OctaveShiftNibble
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.