[−][src]Struct helgoboss_midi::KeyNumber
A key number (0 - 127), e.g. of a MIDI Note On message.
Methods
impl KeyNumber
[src]
pub const MIN: KeyNumber
[src]
The smallest value that can be represented by this type.
pub const MAX: KeyNumber
[src]
The largest value that can be represented by this type.
pub fn new(value: u8) -> KeyNumber
[src]
pub const unsafe fn new_unchecked(value: u8) -> KeyNumber
[src]
pub const fn get(self) -> u8
[src]
Returns the value as a primitive type.
Trait Implementations
impl Clone for KeyNumber
[src]
impl Copy for KeyNumber
[src]
impl Debug for KeyNumber
[src]
impl Default for KeyNumber
[src]
impl Display for KeyNumber
[src]
impl Eq for KeyNumber
[src]
impl From<KeyNumber> for U7
[src]
impl From<KeyNumber> for u8
[src]
impl From<KeyNumber> for i128
[src]
impl From<KeyNumber> for usize
[src]
impl From<KeyNumber> for isize
[src]
impl From<KeyNumber> for i8
[src]
impl From<KeyNumber> for u16
[src]
impl From<KeyNumber> for i16
[src]
impl From<KeyNumber> for u32
[src]
impl From<KeyNumber> for i32
[src]
impl From<KeyNumber> for u64
[src]
impl From<KeyNumber> for i64
[src]
impl From<KeyNumber> for u128
[src]
impl From<U7> for KeyNumber
[src]
impl Hash for KeyNumber
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for KeyNumber
[src]
fn cmp(&self, other: &KeyNumber) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<KeyNumber> for KeyNumber
[src]
impl PartialOrd<KeyNumber> for KeyNumber
[src]
fn partial_cmp(&self, other: &KeyNumber) -> Option<Ordering>
[src]
fn lt(&self, other: &KeyNumber) -> bool
[src]
fn le(&self, other: &KeyNumber) -> bool
[src]
fn gt(&self, other: &KeyNumber) -> bool
[src]
fn ge(&self, other: &KeyNumber) -> bool
[src]
impl StructuralEq for KeyNumber
[src]
impl StructuralPartialEq for KeyNumber
[src]
impl TryFrom<i128> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: i128) -> Result<Self, Self::Error>
[src]
impl TryFrom<i16> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: i16) -> Result<Self, Self::Error>
[src]
impl TryFrom<i32> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: i32) -> Result<Self, Self::Error>
[src]
impl TryFrom<i64> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: i64) -> Result<Self, Self::Error>
[src]
impl TryFrom<isize> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: isize) -> Result<Self, Self::Error>
[src]
impl TryFrom<u128> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: u128) -> Result<Self, Self::Error>
[src]
impl TryFrom<u16> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: u16) -> Result<Self, Self::Error>
[src]
impl TryFrom<u32> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: u32) -> Result<Self, Self::Error>
[src]
impl TryFrom<u64> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: u64) -> Result<Self, Self::Error>
[src]
impl TryFrom<u8> for KeyNumber
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
fn try_from(value: u8) -> Result<Self, Self::Error>
[src]
impl TryFrom<usize> for KeyNumber
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeyNumber
impl Send for KeyNumber
impl Sync for KeyNumber
impl Unpin for KeyNumber
impl UnwindSafe for KeyNumber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,