[][src]Struct helgoboss_midi::U4

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

Creates a U4.

Panics

This function panics if value is greater than 15.

pub const unsafe fn new_unchecked(value: u8) -> U4[src]

Creates a U4 without checking value.

Safety

value must not be greater than 15.

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.

impl Hash for U4[src]

impl Ord for U4[src]

impl PartialEq<U4> for U4[src]

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

impl TryFrom<U7> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i128> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i16> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i32> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i64> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<isize> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u128> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u16> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u32> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u64> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u8> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<usize> for U4[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for U4

impl Send for U4

impl Sync for U4

impl Unpin for U4

impl UnwindSafe for U4

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.