[−][src]Struct helgoboss_midi::U14
A 14-bit integer (0 - 16383).
Implementations
impl U14
[src]
pub const MIN: U14
[src]
The smallest value that can be represented by this type.
pub const MAX: U14
[src]
The largest value that can be represented by this type.
pub fn new(value: u16) -> U14
[src]
pub const unsafe fn new_unchecked(value: u16) -> U14
[src]
pub const fn get(self) -> u16
[src]
Returns the value as a primitive type.
Trait Implementations
impl Clone for U14
[src]
impl Copy for U14
[src]
impl Debug for U14
[src]
impl Default for U14
[src]
impl Display for U14
[src]
impl Eq for U14
[src]
impl From<U14> for u16
[src]
impl From<U14> for i16
[src]
impl From<U14> for u32
[src]
impl From<U14> for i32
[src]
impl From<U14> for u64
[src]
impl From<U14> for i64
[src]
impl From<U14> for u128
[src]
impl From<U14> for i128
[src]
impl From<U14> for usize
[src]
impl From<U14> for isize
[src]
impl From<U4> for U14
[src]
impl From<U7> for U14
[src]
impl From<i8> for U14
[src]
impl From<u8> for U14
[src]
impl FromStr for U14
[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 U14
[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 U14
[src]
pub fn cmp(&self, other: &U14) -> 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<U14> for U14
[src]
impl PartialOrd<U14> for U14
[src]
pub fn partial_cmp(&self, other: &U14) -> Option<Ordering>
[src]
pub fn lt(&self, other: &U14) -> bool
[src]
pub fn le(&self, other: &U14) -> bool
[src]
pub fn gt(&self, other: &U14) -> bool
[src]
pub fn ge(&self, other: &U14) -> bool
[src]
impl StructuralEq for U14
[src]
impl StructuralPartialEq for U14
[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<U14> for U7
[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<i128> for U14
[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<i32> for U14
[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 U14
[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<u128> for U14
[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 U14
[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 U14
[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 U14
[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<usize> for U14
[src]
Auto Trait Implementations
impl RefUnwindSafe for U14
impl Send for U14
impl Sync for U14
impl Unpin for U14
impl UnwindSafe for U14
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>,