[][src]Struct minimp3::Decoder

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

A MP3 decoder which consumes a reader and produces Frames.

Methods

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

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

Creates a new decoder, consuming the reader.

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.

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

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

Trait Implementations

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

Auto Trait Implementations

impl<R> RefUnwindSafe for Decoder<R> where
    R: RefUnwindSafe

impl<R> Sync for Decoder<R> where
    R: Sync

impl<R> Unpin for Decoder<R> where
    R: Unpin

impl<R> UnwindSafe for Decoder<R> where
    R: UnwindSafe

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.