Struct redact_composer_midi::gm::DrumHit
source · pub struct DrumHit {
pub hit: DrumHitType,
pub velocity: u8,
}Expand description
Represents a drum hit. (Similar to PlayNote).
Fields§
§hit: DrumHitTypeThe drum hit sound type.
velocity: u8The strength of attack.
Implementations§
Trait Implementations§
source§impl Element for DrumHit
impl Element for DrumHit
source§fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
fn wrapped_element(&self) -> Option<&(dyn Element + 'static)>
None.
impl Copy for DrumHit
Auto Trait Implementations§
impl RefUnwindSafe for DrumHit
impl Send for DrumHit
impl Sync for DrumHit
impl Unpin for DrumHit
impl UnwindSafe for DrumHit
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