pub trait AltComplexData: AltrepLen {
// Required method
fn elt(&self, i: usize) -> Rcomplex;
// Provided methods
fn as_slice(&self) -> Option<&[Rcomplex]> { ... }
fn get_region(
&self,
start: usize,
len: usize,
buf: &mut [Rcomplex],
) -> usize { ... }
}Expand description
Trait for types that can back an ALTCOMPLEX vector.
Required Methods§
Provided Methods§
Sourcefn get_region(&self, start: usize, len: usize, buf: &mut [Rcomplex]) -> usize
fn get_region(&self, start: usize, len: usize, buf: &mut [Rcomplex]) -> usize
Optional: bulk read into buffer (clamped to available data).
Same contract and override guidance as
AltIntegerData::get_region.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".