Struct rsynth::event::RawMidiEvent [−][src]
A raw midi event.
Implementations
impl RawMidiEvent
[src]
pub fn new(bytes: &[u8]) -> Self
[src]
Create a new RawMidiEvent
with the given raw data.
Panics
Panics when data
does not have length 1, 2 or 3.
pub fn try_new(data: &[u8]) -> Option<Self>
[src]
Try to create a new RawMidiEvent
with the given raw data.
Return None when data
does not have length 1, 2 or 3.
pub fn data(&self) -> &[u8; 3]
[src]
Get the raw data from a RawMidiEvent
, including “padding”.
pub fn bytes(&self) -> &[u8]
[src]
Get the raw data from a RawMidiEvent
.
Trait Implementations
impl AsMut<RawMidiEvent> for RawMidiEvent
[src]
fn as_mut(&mut self) -> &mut RawMidiEvent
[src]
impl AsRef<RawMidiEvent> for RawMidiEvent
[src]
fn as_ref(&self) -> &RawMidiEvent
[src]
impl Clone for RawMidiEvent
[src]
fn clone(&self) -> RawMidiEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for RawMidiEvent
[src]
impl Debug for RawMidiEvent
[src]
impl Eq for RawMidiEvent
[src]
impl PartialEq<RawMidiEvent> for RawMidiEvent
[src]
fn eq(&self, other: &RawMidiEvent) -> bool
[src]
fn ne(&self, other: &RawMidiEvent) -> bool
[src]
impl StructuralEq for RawMidiEvent
[src]
impl StructuralPartialEq for RawMidiEvent
[src]
impl<'a> TryFrom<TrackEventKind<'a>> for RawMidiEvent
[src]
type Error = MidlyConversionError
The type returned in the event of a conversion error.
fn try_from(value: TrackEventKind<'a>) -> Result<Self, Self::Error>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<S, T> Duplex<S> for T where
T: FromSample<S> + ToSample<S>,
T: FromSample<S> + ToSample<S>,
impl<T> From<T> for T
[src]
impl<S> FromSample<S> for S
pub fn from_sample_(s: S) -> S
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> ToSample<U> for T where
U: FromSample<T>,
U: FromSample<T>,
pub fn to_sample_(self) -> U
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,