[][src]Struct helgoboss_midi::U14

pub struct 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]

Creates a U14.

Panics

This function panics if value is greater than 16383.

pub const unsafe fn new_unchecked(value: u16) -> U14[src]

Creates a U14 without checking value.

Safety

value must not be greater than 16383.

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.

impl Hash for U14[src]

impl Ord for U14[src]

impl PartialEq<U14> for U14[src]

impl PartialOrd<U14> for U14[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.

impl TryFrom<U14> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i128> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i32> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i64> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u128> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u16> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u32> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u64> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<usize> for U14[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.