Struct midi_msg::ManufacturerID
source · pub struct ManufacturerID(pub u8, pub Option<u8>);
Expand description
Two 7-bit “bytes”, used to identify the manufacturer for SystemExclusiveMsg::Commercial
messages.
See the published list of IDs.
If second byte is None, it is a one-byte ID. The first byte in a one-byte ID may not be greater than 0x7C.
Tuple Fields§
§0: u8
§1: Option<u8>
Trait Implementations§
source§impl Clone for ManufacturerID
impl Clone for ManufacturerID
source§fn clone(&self) -> ManufacturerID
fn clone(&self) -> ManufacturerID
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ManufacturerID
impl Debug for ManufacturerID
source§impl From<u8> for ManufacturerID
impl From<u8> for ManufacturerID
source§impl PartialEq for ManufacturerID
impl PartialEq for ManufacturerID
source§fn eq(&self, other: &ManufacturerID) -> bool
fn eq(&self, other: &ManufacturerID) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ManufacturerID
impl Eq for ManufacturerID
impl StructuralPartialEq for ManufacturerID
Auto Trait Implementations§
impl Freeze for ManufacturerID
impl RefUnwindSafe for ManufacturerID
impl Send for ManufacturerID
impl Sync for ManufacturerID
impl Unpin for ManufacturerID
impl UnwindSafe for ManufacturerID
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more