[][src]Struct libatm::midi_file::MIDITrackHeader

pub struct MIDITrackHeader {
    pub chunk_type: Vec<u8>,
    pub length: u32,
}

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]

Write track chunk header to buffer

Trait Implementations

impl Clone for MIDITrackHeader[src]

impl Debug for MIDITrackHeader[src]

impl PartialEq<MIDITrackHeader> for MIDITrackHeader[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.