Struct minimp3::Decoder

source ·
pub struct Decoder<R>where
    R: Read,
{ /* private fields */ }
Expand description

A MP3 decoder which consumes a reader and produces Frames.

Implementations

Creates a new decoder, consuming the reader.

Reads a new frame from the internal reader. Returns a Frame if one was found, or, otherwise, an Err explaining why not.

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.