macro_rules! shape {
    ($struct_:ident, [$($elem_:expr),+]) => { ... };
    ($struct_:ident, [$($elem_:expr),+], squeeze_first_dim) => { ... };
}
Expand description

Defines a struct that implements Shape.

Example

use border_core::{shape, Shape};

shape!(ObsShape, [4, 2]);

println!("{:?}", ObsShape::shape());