Struct basic_dsp_vector::SingleBufferBurrow
source · pub struct SingleBufferBurrow<'a, T: RealNumber + 'a> { /* private fields */ }
Expand description
Buffer borrow type for SingleBuffer
.
Trait Implementations§
source§impl<'a, T: RealNumber> BufferBorrow<Vec<T>, T> for SingleBufferBurrow<'a, T>
impl<'a, T: RealNumber> BufferBorrow<Vec<T>, T> for SingleBufferBurrow<'a, T>
source§impl<'a, T: RealNumber + 'a> ToSlice<T> for SingleBufferBurrow<'a, T>
impl<'a, T: RealNumber + 'a> ToSlice<T> for SingleBufferBurrow<'a, T>
source§fn alloc_len(&self) -> usize
fn alloc_len(&self) -> usize
Gets the allocated length of a storage.
It’s expected that
self.alloc_len() >= self.len()
in all cases.source§fn try_resize(&mut self, len: usize) -> VoidResult
fn try_resize(&mut self, len: usize) -> VoidResult
Resizes the storage to support at least
len
elements or
returns an error if resizing isn’t supported.source§impl<'a, T: RealNumber + 'a> ToSliceMut<T> for SingleBufferBurrow<'a, T>
impl<'a, T: RealNumber + 'a> ToSliceMut<T> for SingleBufferBurrow<'a, T>
source§fn to_slice_mut(&mut self) -> &mut [T]
fn to_slice_mut(&mut self) -> &mut [T]
Convert to a mutable slice.
Auto Trait Implementations§
impl<'a, T> Freeze for SingleBufferBurrow<'a, T>
impl<'a, T> RefUnwindSafe for SingleBufferBurrow<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SingleBufferBurrow<'a, T>
impl<'a, T> Sync for SingleBufferBurrow<'a, T>
impl<'a, T> Unpin for SingleBufferBurrow<'a, T>
impl<'a, T> !UnwindSafe for SingleBufferBurrow<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Type, T> InterleaveToVector<T> for Typewhere
Type: ToSlice<T>,
T: RealNumber,
impl<Type, T> InterleaveToVector<T> for Typewhere
Type: ToSlice<T>,
T: RealNumber,
source§fn interleave_to_complex_time_vec(
&self,
other: &Type
) -> Result<DspVec<Vec<T>, T, Complex, Time>, ErrorReason>
fn interleave_to_complex_time_vec( &self, other: &Type ) -> Result<DspVec<Vec<T>, T, Complex, Time>, ErrorReason>
Create a new vector in real number space and time domain.
delta
can be changed after construction with a call of set_delta
.source§fn interleave_to_complex_freq_vec(
&self,
other: &Type
) -> Result<DspVec<Vec<T>, T, Complex, Freq>, ErrorReason>
fn interleave_to_complex_freq_vec( &self, other: &Type ) -> Result<DspVec<Vec<T>, T, Complex, Freq>, ErrorReason>
Create a new vector in real number space and frequency domain.
delta
can be changed after construction with a call of set_delta
.