[][src]Struct alac::Packets

pub struct Packets<R: Read + Seek, S> { /* fields omitted */ }

An iterator-like type that decodes packets into a user-provided buffer.

Methods

impl<R: Read + Seek, S: Sample> Packets<R, S>
[src]

Returns the format of this ALAC file.

Returns a StreamInfo describing the ALAC stream in this file.

Reads the next packet and decodes it into out.

Channels are interleaved, e.g. for a stereo packet out would contains samples in the order [left, right, left, right, ..].

Panics if out is shorter than StreamInfo::max_samples_per_packet.

Auto Trait Implementations

impl<R, S> Send for Packets<R, S> where
    R: Send,
    S: Send

impl<R, S> Sync for Packets<R, S> where
    R: Sync,
    S: Sync

Blanket Implementations

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

Performs the conversion.

impl<T> From for T
[src]

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more