Enum midi_msg::GMSoundSet [−][src]
The instrument that should be played when applying a ChannelVoiceMsg::ProgramChange
.
Use GMSoundSet::Sound as u8
to use as the program number. For example:
MidiMsg::ChannelVoice { channel: Channel::Ch1, msg: ChannelVoiceMsg::ProgramChange { program: GMSoundSet::Vibraphone as u8 } };
Should not be used when targeting channel 10.
As defined in General MIDI System Level 1 (MMA0007 / RP003).
Variants
Trait Implementations
impl Clone for GMSoundSet
[src]
fn clone(&self) -> GMSoundSet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for GMSoundSet
[src]
impl Debug for GMSoundSet
[src]
impl PartialEq<GMSoundSet> for GMSoundSet
[src]
fn eq(&self, other: &GMSoundSet) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for GMSoundSet
[src]
Auto Trait Implementations
impl RefUnwindSafe for GMSoundSet
impl Send for GMSoundSet
impl Sync for GMSoundSet
impl Unpin for GMSoundSet
impl UnwindSafe for GMSoundSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,