Trait ndarray::ShapeArg

source ·
pub trait ShapeArg {
    type Dim: Dimension;

    // Required method
    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().

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

source§

impl<T> ShapeArg for (T, Order)where T: IntoDimension,

§

type Dim = <T as IntoDimension>::Dim

source§

fn into_shape_and_order(self) -> (Self::Dim, Option<Order>)

Implementors§

source§

impl<T> ShapeArg for Twhere T: IntoDimension,

§

type Dim = <T as IntoDimension>::Dim