Skip to main content

ShapeConstraint

Trait ShapeConstraint 

Source
pub trait ShapeConstraint<R: Nat> {
    // Required method
    fn check_shape(shape: &[usize]) -> bool;
}
Expand description

Shape constraint for compile-time checking

Required Methods§

Source

fn check_shape(shape: &[usize]) -> bool

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.

Implementors§