[−][src]Struct helgoboss_midi::U4
A 4-bit integer (0 - 15).
Implementations
impl U4
[src]
pub const MIN: U4
[src]
The smallest value that can be represented by this type.
pub const MAX: U4
[src]
The largest value that can be represented by this type.
pub fn new(value: u8) -> U4
[src]
pub const unsafe fn new_unchecked(value: u8) -> U4
[src]
pub const fn get(self) -> u8
[src]
Returns the value as a primitive type.
Trait Implementations
impl Clone for U4
[src]
impl Copy for U4
[src]
impl Debug for U4
[src]
impl Default for U4
[src]
impl Display for U4
[src]
impl Eq for U4
[src]
impl From<Channel> for U4
[src]
impl From<U4> for Channel
[src]
impl From<U4> for u8
[src]
impl From<U4> for i128
[src]
impl From<U4> for usize
[src]
impl From<U4> for isize
[src]
impl From<U4> for U7
[src]
impl From<U4> for U14
[src]
impl From<U4> for i8
[src]
impl From<U4> for u16
[src]
impl From<U4> for i16
[src]
impl From<U4> for u32
[src]
impl From<U4> for i32
[src]
impl From<U4> for u64
[src]
impl From<U4> for i64
[src]
impl From<U4> for u128
[src]
impl FromStr for U4
[src]
type Err = ParseIntError
The associated error which can be returned from parsing.
pub fn from_str(source: &str) -> Result<Self, Self::Err>
[src]
impl Hash for U4
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for U4
[src]
pub fn cmp(&self, other: &U4) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<U4> for U4
[src]
impl PartialOrd<U4> for U4
[src]
pub fn partial_cmp(&self, other: &U4) -> Option<Ordering>
[src]
pub fn lt(&self, other: &U4) -> bool
[src]
pub fn le(&self, other: &U4) -> bool
[src]
pub fn gt(&self, other: &U4) -> bool
[src]
pub fn ge(&self, other: &U4) -> bool
[src]
impl StructuralEq for U4
[src]
impl StructuralPartialEq for U4
[src]
impl TryFrom<U14> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: U14) -> Result<Self, Self::Error>
[src]
impl TryFrom<U7> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: U7) -> Result<Self, Self::Error>
[src]
impl TryFrom<i128> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: i128) -> Result<Self, Self::Error>
[src]
impl TryFrom<i16> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: i16) -> Result<Self, Self::Error>
[src]
impl TryFrom<i32> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: i32) -> Result<Self, Self::Error>
[src]
impl TryFrom<i64> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: i64) -> Result<Self, Self::Error>
[src]
impl TryFrom<isize> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: isize) -> Result<Self, Self::Error>
[src]
impl TryFrom<u128> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: u128) -> Result<Self, Self::Error>
[src]
impl TryFrom<u16> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: u16) -> Result<Self, Self::Error>
[src]
impl TryFrom<u32> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: u32) -> Result<Self, Self::Error>
[src]
impl TryFrom<u64> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: u64) -> Result<Self, Self::Error>
[src]
impl TryFrom<u8> for U4
[src]
type Error = TryFromGreaterError
The type returned in the event of a conversion error.
pub fn try_from(value: u8) -> Result<Self, Self::Error>
[src]
impl TryFrom<usize> for U4
[src]
Auto Trait Implementations
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,