pub trait Buffer<'a, S, T>where
S: ToSliceMut<T>,
T: RealNumber,{
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.
Required Associated Types
sourcetype Borrow: BufferBorrow<S, T>
type Borrow: BufferBorrow<S, T>
The type of the burrow which is returned.