pub trait NDArray: Send + Sync {
type DType: Number;
type Platform: PlatformInstance;
// Required method
fn shape(&self) -> &[usize];
// Provided methods
fn ndim(&self) -> usize { ... }
fn size(&self) -> usize { ... }
}Expand description
An n-dimensional array
Required Associated Types§
Sourcetype Platform: PlatformInstance
type Platform: PlatformInstance
The platform used to construct operations on this array.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".