pub trait AllocatedArray {
type Elem;
// Required methods
fn layout(&self) -> Result<MatrixLayout>;
fn square_layout(&self) -> Result<MatrixLayout>;
fn ensure_square(&self) -> Result<()>;
fn as_allocated(&self) -> Result<&[Self::Elem]>;
}Required Associated Types§
Required Methods§
fn layout(&self) -> Result<MatrixLayout>
fn square_layout(&self) -> Result<MatrixLayout>
Sourcefn ensure_square(&self) -> Result<()>
fn ensure_square(&self) -> Result<()>
Returns Ok iff the matrix is square (without computing the layout).
fn as_allocated(&self) -> Result<&[Self::Elem]>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".