Struct rsynth::event::RawMidiEvent
source · pub struct RawMidiEvent { /* private fields */ }
Expand description
A raw midi event.
Implementations§
source§impl RawMidiEvent
impl RawMidiEvent
sourcepub fn new(data: &[u8]) -> Self
pub fn new(data: &[u8]) -> Self
Create a new RawMidiEvent
with the given raw data.
Panics
Panics when data
does not have length 1, 2 or 3.
Trait Implementations§
source§impl AsMut<RawMidiEvent> for RawMidiEvent
impl AsMut<RawMidiEvent> for RawMidiEvent
source§fn as_mut(&mut self) -> &mut RawMidiEvent
fn as_mut(&mut self) -> &mut RawMidiEvent
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl AsRef<RawMidiEvent> for RawMidiEvent
impl AsRef<RawMidiEvent> for RawMidiEvent
source§fn as_ref(&self) -> &RawMidiEvent
fn as_ref(&self) -> &RawMidiEvent
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for RawMidiEvent
impl Clone for RawMidiEvent
source§fn clone(&self) -> RawMidiEvent
fn clone(&self) -> RawMidiEvent
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 RawMidiEvent
impl Debug for RawMidiEvent
source§impl PartialEq for RawMidiEvent
impl PartialEq for RawMidiEvent
source§fn eq(&self, other: &RawMidiEvent) -> bool
fn eq(&self, other: &RawMidiEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RawMidiEvent
impl Eq for RawMidiEvent
impl StructuralEq for RawMidiEvent
impl StructuralPartialEq for RawMidiEvent
Auto Trait Implementations§
impl RefUnwindSafe for RawMidiEvent
impl Send for RawMidiEvent
impl Sync for RawMidiEvent
impl Unpin for RawMidiEvent
impl UnwindSafe for RawMidiEvent
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