pub trait ResizeBufferedOps<S, T>where
S: ToSliceMut<T>,
T: RealNumber,{
// Required method
fn resize_b<B>(
&mut self,
buffer: &mut B,
len: usize,
) -> Result<(), ErrorReason>
where B: for<'a> Buffer<'a, S, T>;
}Expand description
Operations to resize a data type.
Required Methods§
Sourcefn resize_b<B>(&mut self, buffer: &mut B, len: usize) -> Result<(), ErrorReason>where
B: for<'a> Buffer<'a, S, T>,
fn resize_b<B>(&mut self, buffer: &mut B, len: usize) -> Result<(), ErrorReason>where
B: for<'a> Buffer<'a, S, T>,
Changes self.len().
If self.is_complex() is true then len must be an even number.
len > self.alloc_len() is only possible if the underlying storage or the buffer
supports resizing.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.