Struct midi_file::core::PitchBendValue
source · pub struct PitchBendValue(/* private fields */);
Expand description
Represents the MIDI pitch bend value. The minimum value is 0
, the maximum value is 16383
(i.e. u14
). This type will clamp values to the valid range.
Implementations§
Trait Implementations§
source§impl Clone for PitchBendValue
impl Clone for PitchBendValue
source§fn clone(&self) -> PitchBendValue
fn clone(&self) -> PitchBendValue
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 PitchBendValue
impl Debug for PitchBendValue
source§impl Default for PitchBendValue
impl Default for PitchBendValue
source§impl Display for PitchBendValue
impl Display for PitchBendValue
source§impl From<PitchBendValue> for u16
impl From<PitchBendValue> for u16
source§fn from(value: PitchBendValue) -> u16
fn from(value: PitchBendValue) -> u16
Converts to this type from the input type.
source§impl From<u16> for PitchBendValue
impl From<u16> for PitchBendValue
source§impl Hash for PitchBendValue
impl Hash for PitchBendValue
source§impl Ord for PitchBendValue
impl Ord for PitchBendValue
source§fn cmp(&self, other: &PitchBendValue) -> Ordering
fn cmp(&self, other: &PitchBendValue) -> 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 PitchBendValue
impl PartialEq for PitchBendValue
source§fn eq(&self, other: &PitchBendValue) -> bool
fn eq(&self, other: &PitchBendValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PitchBendValue
impl PartialOrd for PitchBendValue
source§fn partial_cmp(&self, other: &PitchBendValue) -> Option<Ordering>
fn partial_cmp(&self, other: &PitchBendValue) -> 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 PitchBendValue
impl Eq for PitchBendValue
impl StructuralEq for PitchBendValue
impl StructuralPartialEq for PitchBendValue
Auto Trait Implementations§
impl RefUnwindSafe for PitchBendValue
impl Send for PitchBendValue
impl Sync for PitchBendValue
impl Unpin for PitchBendValue
impl UnwindSafe for PitchBendValue
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