Struct midi_file::core::ProgramChangeValue
source · pub struct ProgramChangeValue { /* private fields */ }
Expand description
Provides the ability to change an instrument (sound, patch, etc.) by specifying the affected channel number and the new program value.
Implementations§
Trait Implementations§
source§impl Clone for ProgramChangeValue
impl Clone for ProgramChangeValue
source§fn clone(&self) -> ProgramChangeValue
fn clone(&self) -> ProgramChangeValue
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 ProgramChangeValue
impl Debug for ProgramChangeValue
source§impl Default for ProgramChangeValue
impl Default for ProgramChangeValue
source§fn default() -> ProgramChangeValue
fn default() -> ProgramChangeValue
Returns the “default value” for a type. Read more
source§impl Hash for ProgramChangeValue
impl Hash for ProgramChangeValue
source§impl Ord for ProgramChangeValue
impl Ord for ProgramChangeValue
source§fn cmp(&self, other: &ProgramChangeValue) -> Ordering
fn cmp(&self, other: &ProgramChangeValue) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ProgramChangeValue
impl PartialEq for ProgramChangeValue
source§fn eq(&self, other: &ProgramChangeValue) -> bool
fn eq(&self, other: &ProgramChangeValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ProgramChangeValue
impl PartialOrd for ProgramChangeValue
source§fn partial_cmp(&self, other: &ProgramChangeValue) -> Option<Ordering>
fn partial_cmp(&self, other: &ProgramChangeValue) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ProgramChangeValue
impl Eq for ProgramChangeValue
impl StructuralEq for ProgramChangeValue
impl StructuralPartialEq for ProgramChangeValue
Auto Trait Implementations§
impl RefUnwindSafe for ProgramChangeValue
impl Send for ProgramChangeValue
impl Sync for ProgramChangeValue
impl Unpin for ProgramChangeValue
impl UnwindSafe for ProgramChangeValue
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