Struct basic_dsp_vector::FixedLenBuffer
[−]
[src]
pub struct FixedLenBuffer<S, T> where
S: ToSliceMut<T>,
T: RealNumber, { /* fields omitted */ }
A buffer which gets initalized with a data storage type and then always keeps that.
Methods
impl<S, T> FixedLenBuffer<S, T> where
S: ToSliceMut<T>,
T: RealNumber,
[src]
S: ToSliceMut<T>,
T: RealNumber,
fn new(storage: S) -> FixedLenBuffer<S, T>
[src]
Creates a new buffer from a storage type. The buffer will internally hold its storage for it's complete life time.
Trait Implementations
impl<'a, S, T> Buffer<'a, S, T> for FixedLenBuffer<S, T> where
S: ToSliceMut<T>,
T: RealNumber + 'a,
[src]
S: ToSliceMut<T>,
T: RealNumber + 'a,
type Borrow = FixedLenBufferBurrow<'a, T>
The type of the burrow which is returned.
fn borrow(&'a mut self, len: usize) -> Self::Borrow
[src]
Asks the buffer for new storage of exactly size len
. The returned array doesn't need to have be initialized with any default value. Read more
fn alloc_len(&self) -> usize
[src]
Returns the allocated length of all storage within this buffer.