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

pub struct TestAudioWriter<'w, T, S> where
    T: AudioWriter<S>,
    S: Copy
{ /* fields omitted */ }

An audio writer, useful for testing.

Implementations

impl<'w, T, S> TestAudioWriter<'w, T, S> where
    T: AudioWriter<S>,
    S: Copy
[src]

pub fn new(writer: &'w mut T, expected_chunks: Vec<AudioChunk<S>>) -> Self[src]

Create a new TestAudioWriter. The newly created will panic when the audio that is written to it does not match with expected_chunks.

Trait Implementations

impl<'w, T, S> AudioWriter<S> for TestAudioWriter<'w, T, S> where
    T: AudioWriter<S>,
    S: Debug + PartialEq + Copy
[src]

type Err = <T as AudioWriter<S>>::Err

The type of the error that occurs when reading data.

Auto Trait Implementations

impl<'w, T, S> RefUnwindSafe for TestAudioWriter<'w, T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe

impl<'w, T, S> Send for TestAudioWriter<'w, T, S> where
    S: Send,
    T: Send

impl<'w, T, S> Sync for TestAudioWriter<'w, T, S> where
    S: Sync,
    T: Sync

impl<'w, T, S> Unpin for TestAudioWriter<'w, T, S> where
    S: Unpin

impl<'w, T, S> !UnwindSafe for TestAudioWriter<'w, T, S>

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.