[][src]Struct helgoboss_midi::Channel

pub struct Channel(_);

A MIDI channel (0 - 15).

Implementations

impl Channel[src]

pub const MIN: Channel[src]

The smallest value that can be represented by this type.

pub const MAX: Channel[src]

The largest value that can be represented by this type.

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

Creates a Channel.

Panics

This function panics if value is greater than 15.

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

Creates a Channel 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 Channel[src]

impl Copy for Channel[src]

impl Debug for Channel[src]

impl Default for Channel[src]

impl Display for Channel[src]

impl Eq for Channel[src]

impl From<Channel> for U4[src]

impl From<Channel> for u8[src]

impl From<Channel> for i128[src]

impl From<Channel> for usize[src]

impl From<Channel> for isize[src]

impl From<Channel> for i8[src]

impl From<Channel> for u16[src]

impl From<Channel> for i16[src]

impl From<Channel> for u32[src]

impl From<Channel> for i32[src]

impl From<Channel> for u64[src]

impl From<Channel> for i64[src]

impl From<Channel> for u128[src]

impl From<U4> for Channel[src]

impl FromStr for Channel[src]

type Err = ParseIntError

The associated error which can be returned from parsing.

impl Hash for Channel[src]

impl Ord for Channel[src]

impl PartialEq<Channel> for Channel[src]

impl PartialOrd<Channel> for Channel[src]

impl StructuralEq for Channel[src]

impl StructuralPartialEq for Channel[src]

impl TryFrom<i128> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i16> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i32> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<i64> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<isize> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u128> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u16> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u32> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u64> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<u8> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

impl TryFrom<usize> for Channel[src]

type Error = TryFromGreaterError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Channel

impl Send for Channel

impl Sync for Channel

impl Unpin for Channel

impl UnwindSafe for Channel

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.