pub trait ReshapableStorage<T, R1, C1, R2, C2>: RawStorage<T, R1, C1>{
type Output: RawStorage<T, R2, C2>;
// Required method
fn reshape_generic(self, nrows: R2, ncols: C2) -> Self::Output;
}
Expand description
A matrix storage that can be reshaped in-place.
Required Associated Types§
Sourcetype Output: RawStorage<T, R2, C2>
type Output: RawStorage<T, R2, C2>
The reshaped storage type.
Required Methods§
Sourcefn reshape_generic(self, nrows: R2, ncols: C2) -> Self::Output
fn reshape_generic(self, nrows: R2, ncols: C2) -> Self::Output
Reshapes the storage into the output storage type.
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.