Type Alias Dyn

Source
pub type Dyn = usize;
Expand description

Dynamically-sized dimension type.

Trait Implementations§

Source§

impl Axis for Dyn

Source§

type Dim<S: Shape> = usize

Corresponding dimension.
Source§

type Init<S: Shape> = DynRank

Shape for the previous dimensions excluding the current dimension.
Source§

type Rest<S: Shape> = DynRank

Shape for the next dimensions excluding the current dimension.
Source§

type Remove<S: Shape> = <<S as Shape>::Tail as Shape>::Dyn

Remove the dimension from the shape.
Source§

type Insert<D: Dim, S: Shape> = <<S as Shape>::Dyn as Shape>::Prepend<usize>

Insert the dimension into the shape.
Source§

fn index(self, rank: usize) -> usize

Returns the dimension index.
Source§

impl Dim for Dyn

Source§

const SIZE: Option<usize> = None

Dimension size if known statically, or None if dynamic.
Source§

type Merge<D: Dim> = D

Merge dimensions, where constant size is preferred over dynamic.
Source§

fn from_size(size: usize) -> Self

Creates an array dimension with the given size. Read more
Source§

fn size(self) -> usize

Returns the number of elements in the dimension.
Source§

impl<const N: usize> From<Const<N>> for Dyn

Source§

fn from(_: Const<N>) -> Self

Converts to this type from the input type.
Source§

impl IntoShape for Dyn

Source§

type IntoShape = (usize,)

Which kind of array shape are we turning this into?
Source§

fn into_shape(self) -> Self::IntoShape

Creates an array shape from a value.