[−][src]Struct helgoboss_midi::ControllerNumber
A controller number (0 - 127) of a MIDI Control Change message.
Methods
impl ControllerNumber
[src]
pub const MIN: ControllerNumber
[src]
The smallest value that can be represented by this type.
pub const MAX: ControllerNumber
[src]
The largest value that can be represented by this type.
pub fn new(value: u8) -> ControllerNumber
[src]
pub const unsafe fn new_unchecked(value: u8) -> ControllerNumber
[src]
pub const fn get(self) -> u8
[src]
Returns the value as a primitive type.
impl ControllerNumber
[src]
pub fn can_be_part_of_14_bit_control_change_message(&self) -> bool
[src]
Returns whether this controller number can be used to make up a 14-bit Control Change message.
pub fn corresponding_14_bit_lsb_controller_number(
&self
) -> Option<ControllerNumber>
[src]
&self
) -> Option<ControllerNumber>
If this controller number can be used to send the most significant byte of a 14-bit Control Change message, this function returns the corresponding controller number that would be used to send the least significant byte of it.
pub fn is_parameter_number_message_controller_number(&self) -> bool
[src]
Returns whether this controller number is intended to be used to send part of a (N)RPN message.
pub fn is_channel_mode_message_controller_number(&self) -> bool
[src]
Returns whether this controller number is intended to be used to send Channel Mode messages.
Trait Implementations
impl Clone for ControllerNumber
[src]
fn clone(&self) -> ControllerNumber
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ControllerNumber
[src]
impl Debug for ControllerNumber
[src]
impl Default for ControllerNumber
[src]
fn default() -> ControllerNumber
[src]
impl Display for ControllerNumber
[src]
impl Eq for ControllerNumber
[src]
impl From<ControllerNumber> for U7
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for u8
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for i128
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for usize
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for isize
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for i8
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for u16
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for i16
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for u32
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for i32
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for u64
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for i64
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<ControllerNumber> for u128
[src]
fn from(value: ControllerNumber) -> Self
[src]
impl From<U7> for ControllerNumber
[src]
impl Hash for ControllerNumber
[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 ControllerNumber
[src]
fn cmp(&self, other: &ControllerNumber) -> 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<ControllerNumber> for ControllerNumber
[src]
fn eq(&self, other: &ControllerNumber) -> bool
[src]
fn ne(&self, other: &ControllerNumber) -> bool
[src]
impl PartialOrd<ControllerNumber> for ControllerNumber
[src]
fn partial_cmp(&self, other: &ControllerNumber) -> Option<Ordering>
[src]
fn lt(&self, other: &ControllerNumber) -> bool
[src]
fn le(&self, other: &ControllerNumber) -> bool
[src]
fn gt(&self, other: &ControllerNumber) -> bool
[src]
fn ge(&self, other: &ControllerNumber) -> bool
[src]
impl StructuralEq for ControllerNumber
[src]
impl StructuralPartialEq for ControllerNumber
[src]
impl TryFrom<i128> for ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[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 ControllerNumber
[src]
Auto Trait Implementations
impl RefUnwindSafe for ControllerNumber
impl Send for ControllerNumber
impl Sync for ControllerNumber
impl Unpin for ControllerNumber
impl UnwindSafe for ControllerNumber
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>,