Trait basic_dsp::Buffer [−][src]
pub trait Buffer<'a, S, T> where
T: RealNumber,
S: ToSliceMut<T>, { type Borrow: BufferBorrow<S, T>; fn borrow(&'a mut self, len: usize) -> Self::Borrow; fn alloc_len(&self) -> usize; }
Expand description
A buffer which can be used by other types. Types will call buffers to create new arrays. A buffer may can implement any buffering strategy.
Associated Types
type Borrow: BufferBorrow<S, T>[src]
type Borrow: BufferBorrow<S, T>[src]The type of the burrow which is returned.
Required methods
Asks the buffer for new storage of exactly size len.
The returned array doesn’t need to have be initialized with any default value.
Implementors
impl<'a, S, T> Buffer<'a, S, T> for FixedLenBuffer<S, T> where
T: RealNumber + 'a,
S: ToSliceMut<T>, [src]
impl<'a, S, T> Buffer<'a, S, T> for FixedLenBuffer<S, T> where
T: RealNumber + 'a,
S: ToSliceMut<T>, [src]