[][src]Struct usbd_midi::data::byte::u4::U4

pub struct U4(_);

A primitive value that can be from 0-0x7F

Methods

impl U4[src]

pub const MAX: U4[src]

pub const MIN: U4[src]

pub fn combine(upper: U4, lower: U4) -> u8[src]

Combines two nibbles (u4) eg half byte result will be a full byte

pub fn from_overflowing_u8(value: u8) -> U4[src]

Constructs a U4 from a u8. Note this clamps off the upper portions

Trait Implementations

impl From<CableNumber> for U4[src]

impl From<CodeIndexNumber> for U4[src]

impl From<U4> for u8[src]

impl TryFrom<u8> for U4[src]

type Error = InvalidU4

The type returned in the event of a conversion error.

Auto Trait Implementations

impl Send for U4

impl Sync for U4

impl Unpin 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, 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.