pub trait TensorDimension {
const DIM: usize;
const ISSCALAR: bool = _;
// Provided method
fn is_scalar(&self) -> bool { ... }
}Expand description
Implement by specifying the const DIM to give your implementation a dimension.
Required Associated Constants§
Provided Associated Constants§
Provided Methods§
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.