[][src]Struct reaper_medium::MidiInputDeviceId

pub struct MidiInputDeviceId(_);

A MIDI input device ID.

This uniquely identifies a MIDI input device according to the REAPER MIDI device preferences.

Implementations

impl MidiInputDeviceId[src]

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

Creates the MIDI input device ID.

Panics

This function panics if the given value is not a valid ID (must be <= 62).

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

Returns the wrapped value.

pub fn to_raw(&self) -> i32[src]

Converts this value to an integer as expected by the low-level API.

Trait Implementations

impl Clone for MidiInputDeviceId[src]

impl Copy for MidiInputDeviceId[src]

impl Debug for MidiInputDeviceId[src]

impl Default for MidiInputDeviceId[src]

impl Display for MidiInputDeviceId[src]

impl Eq for MidiInputDeviceId[src]

impl Hash for MidiInputDeviceId[src]

impl Ord for MidiInputDeviceId[src]

impl PartialEq<MidiInputDeviceId> for MidiInputDeviceId[src]

impl PartialOrd<MidiInputDeviceId> for MidiInputDeviceId[src]

impl StructuralEq for MidiInputDeviceId[src]

impl StructuralPartialEq for MidiInputDeviceId[src]

Auto Trait Implementations

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.