[][src]Struct helgoboss_midi::U7

pub struct U7(_);

A 7-bit integer (0 - 127).

Implementations

impl U7[src]

pub const MIN: U7[src]

The smallest value that can be represented by this type.

pub const MAX: U7[src]

The largest value that can be represented by this type.

pub fn new(value: u8) -> U7[src]

Creates a U7.

Panics

This function panics if value is greater than 127.

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

Creates a U7 without checking value.

Safety

value must not be greater than 127.

pub const fn get(self) -> u8[src]

Returns the value as a primitive type.

Trait Implementations

impl Clone for U7[src]

impl Copy for U7[src]

impl Debug for U7[src]

impl Default for U7[src]

impl Display for U7[src]

impl Eq for U7[src]

impl From<ControllerNumber> for U7[src]

impl From<KeyNumber> for U7[src]

impl From<TimeCodeQuarterFrame> for U7[src]

impl From<U4> for U7[src]

impl From<U7> for TimeCodeQuarterFrame[src]

impl From<U7> for KeyNumber[src]

impl From<U7> for i64[src]

impl From<U7> for u128[src]

impl From<U7> for i128[src]

impl From<U7> for usize[src]

impl From<U7> for isize[src]

impl From<U7> for U14[src]

impl From<U7> for ControllerNumber[src]

impl From<U7> for u8[src]

impl From<U7> for i8[src]

impl From<U7> for u16[src]

impl From<U7> for i16[src]

impl From<U7> for u32[src]

impl From<U7> for i32[src]

impl From<U7> for u64[src]

impl FromStr for U7[src]

type Err = ParseIntError

The associated error which can be returned from parsing.

impl Hash for U7[src]

impl Ord for U7[src]

impl PartialEq<U7> for U7[src]

impl PartialOrd<U7> for U7[src]

impl StructuralEq for U7[src]

impl StructuralPartialEq for U7[src]

impl TryFrom<U14> for U7[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 U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i16> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i32> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i64> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<isize> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u128> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u16> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u32> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u64> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u8> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<usize> for U7[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for U7

impl Send for U7

impl Sync for U7

impl Unpin for U7

impl UnwindSafe for U7

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.