Trait Shape

Source
pub trait Shape: Clone {
    // Required method
    fn shape() -> Vec<usize>;

    // Provided method
    fn element_count() -> usize { ... }
}
Expand description

Marker trait for shapes

Required Methods§

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.

Implementors§

Source§

impl<const A: usize> Shape for R1<A>

Source§

impl<const A: usize, const B: usize> Shape for R2<A, B>

Source§

impl<const A: usize, const B: usize, const C: usize> Shape for R3<A, B, C>

Source§

impl<const A: usize, const B: usize, const C: usize, const D: usize> Shape for R4<A, B, C, D>

Source§

impl<const A: usize, const B: usize, const C: usize, const D: usize, const E: usize> Shape for R5<A, B, C, D, E>

Source§

impl<const A: usize, const B: usize, const C: usize, const D: usize, const E: usize, const F: usize> Shape for R6<A, B, C, D, E, F>