[][src]Struct rodio::source::SamplesConverter

pub struct SamplesConverter<I, D> { /* fields omitted */ }

An iterator that reads from a Source and converts the samples to a specific rate and channels count.

It implements Source as well, but all the data is guaranteed to be in a single frame whose channels and samples rate have been passed to new.

Implementations

impl<I, D> SamplesConverter<I, D>[src]

pub fn new(input: I) -> SamplesConverter<I, D>

Notable traits for SamplesConverter<I, D>

impl<I, D> Iterator for SamplesConverter<I, D> where
    I: Source,
    I::Item: Sample,
    D: Sample
type Item = D;
[src]

pub fn inner(&self) -> &I[src]

Returns a reference to the inner source.

pub fn inner_mut(&mut self) -> &mut I[src]

Returns a mutable reference to the inner source.

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

Returns the inner source.

Trait Implementations

impl<I: Clone, D: Clone> Clone for SamplesConverter<I, D>[src]

impl<I, D> ExactSizeIterator for SamplesConverter<I, D> where
    I: Source + ExactSizeIterator,
    I::Item: Sample,
    D: Sample
[src]

impl<I, D> Iterator for SamplesConverter<I, D> where
    I: Source,
    I::Item: Sample,
    D: Sample
[src]

type Item = D

The type of the elements being iterated over.

impl<I, D> Source for SamplesConverter<I, D> where
    I: Source,
    I::Item: Sample,
    D: Sample
[src]

Auto Trait Implementations

impl<I, D> RefUnwindSafe for SamplesConverter<I, D> where
    D: RefUnwindSafe,
    I: RefUnwindSafe

impl<I, D> Send for SamplesConverter<I, D> where
    D: Send,
    I: Send

impl<I, D> Sync for SamplesConverter<I, D> where
    D: Sync,
    I: Sync

impl<I, D> Unpin for SamplesConverter<I, D> where
    D: Unpin,
    I: Unpin

impl<I, D> UnwindSafe for SamplesConverter<I, D> where
    D: UnwindSafe,
    I: 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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.