[][src]Struct minimp3::Decoder

pub struct Decoder<R> { /* fields omitted */ }

A MP3 decoder which consumes a reader and produces Frames.

Implementations

impl<R> Decoder<R>[src]

pub fn new(reader: R) -> Self[src]

Creates a new decoder, consuming the reader.

pub fn reader(&self) -> &R[src]

Return a reference to the underlying reader.

pub fn reader_mut(&mut self) -> &mut R[src]

Return a mutable reference to the underlying reader (reading from it is not recommended).

pub fn into_inner(self) -> R[src]

Destroy the decoder and return the inner reader

impl<R: Read> Decoder<R>[src]

pub fn next_frame(&mut self) -> Result<Frame, Error>[src]

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

Trait Implementations

impl<R: Send> Send for Decoder<R>[src]

Auto Trait Implementations

impl<R> RefUnwindSafe for Decoder<R> where
    R: RefUnwindSafe
[src]

impl<R> Sync for Decoder<R> where
    R: Sync
[src]

impl<R> Unpin for Decoder<R> where
    R: Unpin
[src]

impl<R> UnwindSafe for Decoder<R> where
    R: UnwindSafe
[src]

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, 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.