pub trait StridedArray: ArrayProtocol {
// Required methods
fn strides(&self) -> Vec<usize>;
fn is_contiguous(&self) -> bool;
fn is_fortran_contiguous(&self) -> bool;
}Expand description
Trait for arrays that support strided access.
Required Methods§
Sourcefn is_contiguous(&self) -> bool
fn is_contiguous(&self) -> bool
Check if this array is contiguous.
Sourcefn is_fortran_contiguous(&self) -> bool
fn is_fortran_contiguous(&self) -> bool
Check if this array is Fortran-contiguous (column-major).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".