pub struct MIDITrackEvent<Buffer: Borrow<[u8]>> {
pub delta_time: u32,
pub inner: MIDITrackInner<Buffer>,
}Fields§
§delta_time: u32§inner: MIDITrackInner<Buffer>Implementations§
Source§impl<Buffer: Borrow<[u8]>> MIDITrackEvent<Buffer>
impl<Buffer: Borrow<[u8]>> MIDITrackEvent<Buffer>
pub fn new(delta_time: u32, event: MIDITrackInner<Buffer>) -> Self
pub fn delta_time(&self) -> u32
pub fn message(&self) -> Option<&MIDIMessage<Buffer>>
Trait Implementations§
Source§impl<Buffer: Clone + Borrow<[u8]>> Clone for MIDITrackEvent<Buffer>
impl<Buffer: Clone + Borrow<[u8]>> Clone for MIDITrackEvent<Buffer>
Source§fn clone(&self) -> MIDITrackEvent<Buffer>
fn clone(&self) -> MIDITrackEvent<Buffer>
Returns a duplicate 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<Buffer: Ord + Borrow<[u8]>> Ord for MIDITrackEvent<Buffer>
impl<Buffer: Ord + Borrow<[u8]>> Ord for MIDITrackEvent<Buffer>
Source§fn cmp(&self, other: &MIDITrackEvent<Buffer>) -> Ordering
fn cmp(&self, other: &MIDITrackEvent<Buffer>) -> 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<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDITrackEvent<Buffer>
impl<Buffer: PartialOrd + Borrow<[u8]>> PartialOrd for MIDITrackEvent<Buffer>
impl<Buffer: Eq + Borrow<[u8]>> Eq for MIDITrackEvent<Buffer>
impl<Buffer: Borrow<[u8]>> StructuralPartialEq for MIDITrackEvent<Buffer>
Auto Trait Implementations§
impl<Buffer> Freeze for MIDITrackEvent<Buffer>where
Buffer: Freeze,
impl<Buffer> RefUnwindSafe for MIDITrackEvent<Buffer>where
Buffer: RefUnwindSafe,
impl<Buffer> Send for MIDITrackEvent<Buffer>where
Buffer: Send,
impl<Buffer> Sync for MIDITrackEvent<Buffer>where
Buffer: Sync,
impl<Buffer> Unpin for MIDITrackEvent<Buffer>where
Buffer: Unpin,
impl<Buffer> UnwindSafe for MIDITrackEvent<Buffer>where
Buffer: UnwindSafe,
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