[−][src]Struct libatm::midi_file::MIDITrackHeader
MIDI track chunk header
Encapsulates the chunk type ('MTrk') and the length of a MIDI track chunk. The official MIDI spec does not refer to these data as the truck chunk header, this library simply makes the distinction for ease of use.
Fields
chunk_type: Vec<u8>
length: u32
Implementations
impl MIDITrackHeader
[src]
pub fn new(chunk_type: Vec<u8>, length: u32) -> Self
[src]
Create new MIDITrackHeader
pub fn write_buffer<T>(&self, target: &mut T) -> Result<()> where
T: WriteBytesExt,
[src]
T: WriteBytesExt,
Write track chunk header to buffer
Trait Implementations
impl Clone for MIDITrackHeader
[src]
fn clone(&self) -> MIDITrackHeader
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MIDITrackHeader
[src]
impl PartialEq<MIDITrackHeader> for MIDITrackHeader
[src]
fn eq(&self, other: &MIDITrackHeader) -> bool
[src]
fn ne(&self, other: &MIDITrackHeader) -> bool
[src]
impl StructuralPartialEq for MIDITrackHeader
[src]
Auto Trait Implementations
impl RefUnwindSafe for MIDITrackHeader
impl Send for MIDITrackHeader
impl Sync for MIDITrackHeader
impl Unpin for MIDITrackHeader
impl UnwindSafe for MIDITrackHeader
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
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.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,