Struct rsynth::backend::combined::TestAudioReader[][src]

pub struct TestAudioReader<'b, S> where
    S: Copy
{ /* fields omitted */ }

An audio reader, useful for testing.

Implementations

impl<'b, S> TestAudioReader<'b, S> where
    S: Copy
[src]

pub fn new(
    reader: AudioBufferReader<'b, S>,
    expected_channels: usize,
    expected_buffer_sizes: Vec<usize>
) -> Self
[src]

Create a new TestAudioReader. The newly created TestAudioReader will read the same data as the reader that is provided with this method, but additionally checks the number of channels and of buffer sizes, panicking when they do not match.

Trait Implementations

impl<'b, S> AudioReader<S> for TestAudioReader<'b, S> where
    S: Copy
[src]

type Err = Infallible

The type of the error that occurs when reading data.

Auto Trait Implementations

impl<'b, S> RefUnwindSafe for TestAudioReader<'b, S> where
    S: RefUnwindSafe

impl<'b, S> Send for TestAudioReader<'b, S> where
    S: Send + Sync

impl<'b, S> Sync for TestAudioReader<'b, S> where
    S: Sync

impl<'b, S> Unpin for TestAudioReader<'b, S> where
    S: Unpin

impl<'b, S> UnwindSafe for TestAudioReader<'b, S> where
    S: RefUnwindSafe + 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<S, T> Duplex<S> for T where
    T: FromSample<S> + ToSample<S>, 

impl<T> From<T> for T[src]

impl<S> FromSample<S> for S

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

impl<T, U> ToSample<U> for T where
    U: FromSample<T>, 

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.