Struct syxpack::Manufacturer
source · [−]pub struct Manufacturer {
pub id: ManufacturerId,
pub name: String,
}Expand description
MIDI equipment manufacturer.
Fields
id: ManufacturerIdname: StringImplementations
sourceimpl Manufacturer
impl Manufacturer
sourcepub fn from_id(id: ManufacturerId) -> Self
pub fn from_id(id: ManufacturerId) -> Self
sourcepub fn to_bytes(&self) -> Vec<u8>
pub fn to_bytes(&self) -> Vec<u8>
Converts the manufacturer into bytes for serializing the SysEx message.
sourcepub fn group(&self) -> ManufacturerGroup
pub fn group(&self) -> ManufacturerGroup
Gets the group of this manufacturer based on the identifier.
Trait Implementations
sourceimpl Clone for Manufacturer
impl Clone for Manufacturer
sourcefn clone(&self) -> Manufacturer
fn clone(&self) -> Manufacturer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for Manufacturer
impl Debug for Manufacturer
sourceimpl Display for Manufacturer
impl Display for Manufacturer
sourceimpl Hash for Manufacturer
impl Hash for Manufacturer
sourceimpl PartialEq<Manufacturer> for Manufacturer
impl PartialEq<Manufacturer> for Manufacturer
sourcefn eq(&self, other: &Manufacturer) -> bool
fn eq(&self, other: &Manufacturer) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl Eq for Manufacturer
impl StructuralEq for Manufacturer
impl StructuralPartialEq for Manufacturer
Auto Trait Implementations
impl RefUnwindSafe for Manufacturer
impl Send for Manufacturer
impl Sync for Manufacturer
impl Unpin for Manufacturer
impl UnwindSafe for Manufacturer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more