Skip to main content

IntoShapeVec

Trait IntoShapeVec 

pub trait IntoShapeVec {
    // Required method
    fn into_shape_vec(self) -> SmallVec<[usize; 8]>;
}
Expand description

Convert a common shape container into the dynamic owned shape type.

Arrays, vectors, slices, and ShapeVec implement this trait through their AsRef<[usize]> representation.

Required Methods§

fn into_shape_vec(self) -> SmallVec<[usize; 8]>

Convert this shape container into an owned ShapeVec.

Implementors§

§

impl<S> IntoShapeVec for S
where S: AsRef<[usize]>,