pub struct Velocity(/* private fields */);
Expand description
Represents the MIDI velocity. 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 Velocity
impl Ord for Velocity
source§impl PartialEq for Velocity
impl PartialEq for Velocity
source§impl PartialOrd for Velocity
impl PartialOrd for Velocity
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 Velocity
impl Eq for Velocity
impl StructuralEq for Velocity
impl StructuralPartialEq for Velocity
Auto Trait Implementations§
impl RefUnwindSafe for Velocity
impl Send for Velocity
impl Sync for Velocity
impl Unpin for Velocity
impl UnwindSafe for Velocity
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