pub struct Program(/* private fields */);
Expand description
Represents the MIDI program number. The minimum value is 0
, the maximum value is 127
(i.e. u7
). This type will clamp values to the valid range.
Implementations§
Trait Implementations§
source§impl Ord for Program
impl Ord for Program
source§impl PartialEq for Program
impl PartialEq for Program
source§impl PartialOrd for Program
impl PartialOrd for Program
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 Program
impl Eq for Program
impl StructuralEq for Program
impl StructuralPartialEq for Program
Auto Trait Implementations§
impl RefUnwindSafe for Program
impl Send for Program
impl Sync for Program
impl Unpin for Program
impl UnwindSafe for Program
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