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]
impl<S, T> FixedLenBuffer<S, T> where
S: ToSliceMut<T>,
T: RealNumber, pub fn new(storage: S) -> FixedLenBuffer<S, T>[src]
pub fn new(storage: S) -> FixedLenBuffer<S, T>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]
impl<'a, S, T> Buffer<'a, S, T> for FixedLenBuffer<S, T> where
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]
fn borrow(&'a mut self, len: usize) -> Self::BorrowAsks 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]
fn alloc_len(&self) -> usizeReturns the allocated length of all storage within this buffer.
Auto Trait Implementations
impl<S, T> Send for FixedLenBuffer<S, T> where
S: Send,
impl<S, T> Send for FixedLenBuffer<S, T> where
S: Send, impl<S, T> Sync for FixedLenBuffer<S, T> where
S: Sync,
impl<S, T> Sync for FixedLenBuffer<S, T> where
S: Sync,