Trait rotary::io::WriteBuf[][src]

pub trait WriteBuf<T> where
    T: Sample
{ fn remaining_mut(&self) -> usize;
fn copy<I>(&mut self, buf: I)
    where
        I: ReadBuf + Buf<T>
;
fn translate<I, U>(&mut self, buf: I)
    where
        T: Translate<U>,
        I: ReadBuf + Buf<U>,
        U: Sample
; fn has_remaining_mut(&self) -> bool { ... } }

A buffer that can be written to.

Required methods

fn remaining_mut(&self) -> usize[src]

Remaining number of frames that can be written.

fn copy<I>(&mut self, buf: I) where
    I: ReadBuf + Buf<T>, 
[src]

Read frames from the given read buffer into this buffer.

Advances the read from buffer by the number of frames read through Read::advance.

fn translate<I, U>(&mut self, buf: I) where
    T: Translate<U>,
    I: ReadBuf + Buf<U>,
    U: Sample
[src]

Read translated frames from the given read buffer into this buffer.

Advances the read from buffer by the number of frames read through Read::advance.

Loading content...

Provided methods

fn has_remaining_mut(&self) -> bool[src]

Test if this buffer has remaining mutable frames.

Loading content...

Implementors

impl<B, T> WriteBuf<T> for ReadWrite<B> where
    B: BufMut<T>,
    T: Sample
[src]

impl<B, T> WriteBuf<T> for Write<B> where
    B: BufMut<T>,
    T: Sample
[src]

fn remaining_mut(&self) -> usize[src]

Remaining number of frames available.

fn copy<I>(&mut self, buf: I) where
    I: ReadBuf + Buf<T>, 
[src]

Write to the underlying buffer.

fn translate<I, U>(&mut self, buf: I) where
    T: Translate<U>,
    I: ReadBuf + Buf<U>,
    U: Sample
[src]

Write translated samples to the underlying buffer.

impl<T> WriteBuf<T> for Interleaved<&mut [T]> where
    T: Sample
[src]

Loading content...