Trait tract_core::internal::tract_ndarray::ShapeArg [−][src]
pub trait ShapeArg { type Dim: Dimension; fn into_shape_and_order(self) -> (Self::Dim, Option<Order>); }
Expand description
Array shape argument with optional order parameter
Shape or array dimension argument, with optional Order
parameter.
This is an argument conversion trait that is used to accept an array shape and (optionally) an ordering argument.
See for example .to_shape()
.
Associated Types
Required methods
Implementations on Foreign Types
Implementors
impl<T> ShapeArg for T where
T: IntoDimension,
[src]
impl<T> ShapeArg for T where
T: IntoDimension,
[src]