Skip to main content

IntoShapeVec

Trait IntoShapeVec 

Source
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§

Source

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

Convert this shape container into an owned ShapeVec.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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