1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::any::Any;
use tinyvec::TinyVec;
struct Array {
    shape: Shape,
    data: Vec<Box<dyn Any>>,
}
struct Shape {
    dims: TinyVec<[usize; 3]>,
}

impl Shape {
    pub fn scalar() -> Self {
        Shape {
            dims: TinyVec::new(),
        }
    }
}