pub trait IsSquare {
// Required method
fn is_square(&self) -> bool;
}Expand description
IsSquare is a trait for checking if the layout, or dimensionality, of a tensor is
square.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".