Struct ndarray::Dim[][src]

pub struct Dim<I: ?Sized> { /* fields omitted */ }
Expand description

Dimension description.

Dim describes the number of axes and the length of each axis in an array. It is also used as an index type.

See also the Dimension trait for its methods and operations.

Examples

To create an array with a particular dimension, you’d just pass a tuple (in this example (3, 2) is used), which is converted to Dim by the array constructor.

use ndarray::Array2;
use ndarray::Dim;

let mut array = Array2::zeros((3, 2));
array[[0, 0]] = 1.;
assert_eq!(array.raw_dim(), Dim([3, 2]));

Implementations

impl Dim<IxDynImpl>[src]

pub fn zeros(n: usize) -> IxDyn[src]

Create a new dimension value with n axes, all zeros

Trait Implementations

impl<I> Add<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, rhs: Self) -> Self[src]

Performs the + operation. Read more

impl Add<usize> for Dim<[Ix; 1]>[src]

type Output = Self

The resulting type after applying the + operator.

fn add(self, rhs: Ix) -> Self[src]

Performs the + operation. Read more

impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn add_assign(&mut self, rhs: &Self)[src]

Performs the += operation. Read more

impl<I> AddAssign<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn add_assign(&mut self, rhs: Self)[src]

Performs the += operation. Read more

impl AddAssign<usize> for Dim<[Ix; 1]>[src]

fn add_assign(&mut self, rhs: Ix)[src]

Performs the += operation. Read more

impl<I: Clone + ?Sized> Clone for Dim<I>[src]

fn clone(&self) -> Dim<I>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<I> Debug for Dim<I> where
    I: Debug
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<I: Default + ?Sized> Default for Dim<I>[src]

fn default() -> Dim<I>[src]

Returns the “default value” for a type. Read more

impl<'de, I> Deserialize<'de> for Dim<I> where
    I: Deserialize<'de>, 
[src]

Requires crate feature "serde"

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
    D: Deserializer<'de>, 
[src]

Deserialize this value from the given Serde deserializer. Read more

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 1]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 2]>[src]

type Output = Dim<[usize; 2]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 3]>[src]

type Output = Dim<[usize; 3]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 4]>[src]

type Output = Dim<[usize; 4]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 5]>[src]

type Output = Dim<[usize; 5]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 0]>> for Dim<[usize; 6]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 2]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 2]>[src]

type Output = Dim<[usize; 3]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 3]>[src]

type Output = Dim<[usize; 4]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 4]>[src]

type Output = Dim<[usize; 5]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 5]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 1]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 3]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 2]>[src]

type Output = Dim<[usize; 4]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 3]>[src]

type Output = Dim<[usize; 5]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 4]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 2]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 4]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 2]>[src]

type Output = Dim<[usize; 5]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 3]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 4]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 3]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 5]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 2]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 3]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 4]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 4]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 1]>[src]

type Output = Dim<[usize; 6]>

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 2]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 3]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 4]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 5]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 1]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 2]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 3]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 4]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<[usize; 6]>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 1]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 2]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 3]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 4]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 5]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimAdd<Dim<IxDynImpl>> for Dim<[usize; 6]>[src]

type Output = IxDyn

The sum of the two dimensions.

impl DimMax<Dim<[usize; 0]>> for Ix1[src]

type Output = Ix1

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for Ix2[src]

type Output = Ix2

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for Ix3[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for Ix4[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for Ix5[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 0]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix0[src]

type Output = Ix1

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix2[src]

type Output = Ix2

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix3[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix4[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix5[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 1]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix0[src]

type Output = Ix2

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix1[src]

type Output = Ix2

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix3[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix4[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix5[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 2]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix0[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix1[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix2[src]

type Output = Ix3

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix4[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix5[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 3]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix0[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix1[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix2[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix3[src]

type Output = Ix4

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix5[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 4]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix0[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix1[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix2[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix3[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix4[src]

type Output = Ix5

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for Ix6[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 5]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix0[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix1[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix2[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix3[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix4[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for Ix5[src]

type Output = Ix6

The resulting dimension type after broadcasting.

impl DimMax<Dim<[usize; 6]>> for IxDyn[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix0[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix1[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix2[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix3[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix4[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix5[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl DimMax<Dim<IxDynImpl>> for Ix6[src]

type Output = IxDyn

The resulting dimension type after broadcasting.

impl Dimension for Dim<[Ix; 0]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = ()

Pattern matching friendly form of the dimension value. Read more

type Smaller = Self

Next smaller dimension (if applicable)

type Larger = Ix1

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn _fastest_varying_stride_order(&self) -> Self[src]

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn next_for(&self, _index: Self) -> Option<Self>[src]

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, _ignore: Axis) -> Self::Smaller[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 1]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = Ix

Pattern matching friendly form of the dimension value. Read more

type Smaller = Ix0

Next smaller dimension (if applicable)

type Larger = Ix2

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn next_for(&self, index: Self) -> Option<Self>[src]

fn equal(&self, rhs: &Self) -> bool[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn default_strides(&self) -> Self[src]

fn _fastest_varying_stride_order(&self) -> Self[src]

fn min_stride_axis(&self, _: &Self) -> Axis[src]

fn max_stride_axis(&self, _: &Self) -> Axis[src]

fn first_index(&self) -> Option<Self>[src]

fn stride_offset(index: &Self, stride: &Self) -> isize[src]

fn stride_offset_checked(&self, stride: &Self, index: &Self) -> Option<isize>[src]

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn from_dimension<D2: Dimension>(d: &D2) -> Option<Self>[src]

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 2]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = (Ix, Ix)

Pattern matching friendly form of the dimension value. Read more

type Smaller = Ix1

Next smaller dimension (if applicable)

type Larger = Ix3

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn next_for(&self, index: Self) -> Option<Self>[src]

fn equal(&self, rhs: &Self) -> bool[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn last_elem(&self) -> usize[src]

fn set_last_elem(&mut self, i: usize)[src]

fn default_strides(&self) -> Self[src]

fn fortran_strides(&self) -> Self[src]

fn _fastest_varying_stride_order(&self) -> Self[src]

fn min_stride_axis(&self, strides: &Self) -> Axis[src]

fn first_index(&self) -> Option<Self>[src]

fn stride_offset(index: &Self, strides: &Self) -> isize[src]

fn stride_offset_checked(&self, strides: &Self, index: &Self) -> Option<isize>[src]

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 3]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = (Ix, Ix, Ix)

Pattern matching friendly form of the dimension value. Read more

type Smaller = Ix2

Next smaller dimension (if applicable)

type Larger = Ix4

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn next_for(&self, index: Self) -> Option<Self>[src]

fn stride_offset(index: &Self, strides: &Self) -> isize[src]

fn stride_offset_checked(&self, strides: &Self, index: &Self) -> Option<isize>[src]

fn _fastest_varying_stride_order(&self) -> Self[src]

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 4]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = (Ix, Ix, Ix, Ix)

Pattern matching friendly form of the dimension value. Read more

type Smaller = Dim<[Ix; 3]>

Next smaller dimension (if applicable)

type Larger = Ix5

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 5]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = (Ix, Ix, Ix, Ix, Ix)

Pattern matching friendly form of the dimension value. Read more

type Smaller = Dim<[Ix; 4]>

Next smaller dimension (if applicable)

type Larger = Ix6

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl Dimension for Dim<[Ix; 6]>[src]

const NDIM: Option<usize>[src]

For fixed-size dimension representations (e.g. Ix2), this should be Some(ndim), and for variable-size dimension representations (e.g. IxDyn), this should be None. Read more

type Pattern = (Ix, Ix, Ix, Ix, Ix, Ix)

Pattern matching friendly form of the dimension value. Read more

type Smaller = Dim<[Ix; 5]>

Next smaller dimension (if applicable)

type Larger = IxDyn

Next larger dimension

fn ndim(&self) -> usize[src]

Returns the number of dimensions (number of axes).

fn into_pattern(self) -> Self::Pattern[src]

Convert the dimension into a pattern matching friendly value.

fn slice(&self) -> &[Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn slice_mut(&mut self) -> &mut [Ix]

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
[src]

fn zeros(ndim: usize) -> Self[src]

Creates a dimension of all zeros with the specified ndim. Read more

fn insert_axis(&self, axis: Axis) -> Self::Larger[src]

fn try_remove_axis(&self, axis: Axis) -> Self::Smaller[src]

fn size(&self) -> usize[src]

Compute the size of the dimension (number of elements)

fn size_checked(&self) -> Option<usize>[src]

Compute the size while checking for overflow.

fn as_array_view(&self) -> ArrayView1<'_, Ix>[src]

Borrow as a read-only array view.

fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>[src]

Borrow as a read-write array view.

fn into_dyn(self) -> IxDyn[src]

Convert the dimensional into a dynamic dimensional (IxDyn).

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<I: Hash + ?Sized> Hash for Dim<I>[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given Hasher. Read more

impl Index<usize> for Dim<[Ix; 0]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 1]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 2]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 3]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 4]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 5]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<[Ix; 6]>[src]

type Output = usize

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl Index<usize> for Dim<IxDynImpl>[src]

type Output = <IxDynImpl as Index<usize>>::Output

The returned type after indexing.

fn index(&self, index: usize) -> &Self::Output[src]

Performs the indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 0]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 1]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 2]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 3]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 4]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 5]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<[Ix; 6]>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl IndexMut<usize> for Dim<IxDynImpl>[src]

fn index_mut(&mut self, index: usize) -> &mut Self::Output[src]

Performs the mutable indexing (container[index]) operation. Read more

impl<I> Mul<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: Self) -> Self[src]

Performs the * operation. Read more

impl<I> Mul<usize> for Dim<I> where
    Dim<I>: Dimension
[src]

type Output = Self

The resulting type after applying the * operator.

fn mul(self, rhs: Ix) -> Self[src]

Performs the * operation. Read more

impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn mul_assign(&mut self, rhs: &Self)[src]

Performs the *= operation. Read more

impl<I> MulAssign<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn mul_assign(&mut self, rhs: Self)[src]

Performs the *= operation. Read more

impl<I> MulAssign<usize> for Dim<I> where
    Dim<I>: Dimension
[src]

fn mul_assign(&mut self, rhs: Ix)[src]

Performs the *= operation. Read more

impl NdIndex<Dim<[usize; 0]>> for ()[src]

fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix0) -> isize[src]

impl NdIndex<Dim<[usize; 0]>> for [Ix; 0][src]

fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix0) -> isize[src]

impl NdIndex<Dim<[usize; 1]>> for Ix[src]

fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>[src]

fn index_unchecked(&self, strides: &Ix1) -> isize[src]

impl NdIndex<Dim<[usize; 1]>> for [Ix; 1][src]

fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix1) -> isize[src]

impl NdIndex<Dim<[usize; 2]>> for (Ix, Ix)[src]

fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>[src]

fn index_unchecked(&self, strides: &Ix2) -> isize[src]

impl NdIndex<Dim<[usize; 2]>> for [Ix; 2][src]

fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix2) -> isize[src]

impl NdIndex<Dim<[usize; 3]>> for (Ix, Ix, Ix)[src]

fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>[src]

fn index_unchecked(&self, strides: &Ix3) -> isize[src]

impl NdIndex<Dim<[usize; 3]>> for [Ix; 3][src]

fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix3) -> isize[src]

impl NdIndex<Dim<[usize; 4]>> for (Ix, Ix, Ix, Ix)[src]

fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>[src]

fn index_unchecked(&self, strides: &Ix4) -> isize[src]

impl NdIndex<Dim<[usize; 4]>> for [Ix; 4][src]

fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix4) -> isize[src]

impl NdIndex<Dim<[usize; 5]>> for (Ix, Ix, Ix, Ix, Ix)[src]

fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>[src]

fn index_unchecked(&self, strides: &Ix5) -> isize[src]

impl NdIndex<Dim<[usize; 5]>> for [Ix; 5][src]

fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix5) -> isize[src]

impl NdIndex<Dim<[usize; 6]>> for [Ix; 6][src]

fn index_checked(&self, dim: &Ix6, strides: &Ix6) -> Option<isize>[src]

fn index_unchecked(&self, _strides: &Ix6) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Ix[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 0]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 4][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 5]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 5][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 6]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 6][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl<'a> NdIndex<Dim<IxDynImpl>> for &'a IxDyn[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [Ix][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 0][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 1]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 1][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 2]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 2][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 3]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for [Ix; 3][src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 4]>[src]

fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>[src]

fn index_unchecked(&self, strides: &IxDyn) -> isize[src]

impl<I: PartialEq + ?Sized> PartialEq<Dim<I>> for Dim<I>[src]

fn eq(&self, other: &Dim<I>) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Dim<I>) -> bool[src]

This method tests for !=.

impl<I: ?Sized> PartialEq<I> for Dim<I> where
    I: PartialEq
[src]

fn eq(&self, rhs: &I) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl RemoveAxis for Dim<IxDynImpl>[src]

fn remove_axis(&self, axis: Axis) -> Self[src]

impl RemoveAxis for Dim<[Ix; 1]>[src]

fn remove_axis(&self, axis: Axis) -> Ix0[src]

impl RemoveAxis for Dim<[Ix; 2]>[src]

fn remove_axis(&self, axis: Axis) -> Ix1[src]

impl RemoveAxis for Dim<[Ix; 3]>[src]

fn remove_axis(&self, axis: Axis) -> Self::Smaller[src]

impl RemoveAxis for Dim<[Ix; 4]>[src]

fn remove_axis(&self, axis: Axis) -> Self::Smaller[src]

impl RemoveAxis for Dim<[Ix; 5]>[src]

fn remove_axis(&self, axis: Axis) -> Self::Smaller[src]

impl RemoveAxis for Dim<[Ix; 6]>[src]

fn remove_axis(&self, axis: Axis) -> Self::Smaller[src]

impl<I> Serialize for Dim<I> where
    I: Serialize
[src]

Requires crate feature "serde"

fn serialize<Se>(&self, serializer: Se) -> Result<Se::Ok, Se::Error> where
    Se: Serializer
[src]

Serialize this value into the given Serde serializer. Read more

impl<T, Dout> SliceArg<Dim<[usize; 0]>> for SliceInfo<T, Ix0, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 1]>> for SliceInfo<T, Ix1, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 2]>> for SliceInfo<T, Ix2, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 3]>> for SliceInfo<T, Ix3, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 4]>> for SliceInfo<T, Ix4, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 5]>> for SliceInfo<T, Ix5, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Dout> SliceArg<Dim<[usize; 6]>> for SliceInfo<T, Ix6, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<T, Din, Dout> SliceArg<Dim<IxDynImpl>> for SliceInfo<T, Din, Dout> where
    T: AsRef<[SliceInfoElem]>,
    Din: Dimension,
    Dout: Dimension
[src]

type OutDim = Dout

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl SliceArg<Dim<IxDynImpl>> for [SliceInfoElem][src]

type OutDim = IxDyn

Dimensionality of the output array.

fn in_ndim(&self) -> usize[src]

Returns the number of axes in the input array.

fn out_ndim(&self) -> usize[src]

Returns the number of axes in the output array.

fn __private__(&self) -> PrivateMarker[src]

This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more

impl<I> Sub<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, rhs: Self) -> Self[src]

Performs the - operation. Read more

impl Sub<usize> for Dim<[Ix; 1]>[src]

type Output = Self

The resulting type after applying the - operator.

fn sub(self, rhs: Ix) -> Self[src]

Performs the - operation. Read more

impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn sub_assign(&mut self, rhs: &Self)[src]

Performs the -= operation. Read more

impl<I> SubAssign<Dim<I>> for Dim<I> where
    Dim<I>: Dimension
[src]

fn sub_assign(&mut self, rhs: Self)[src]

Performs the -= operation. Read more

impl SubAssign<usize> for Dim<[Ix; 1]>[src]

fn sub_assign(&mut self, rhs: Ix)[src]

Performs the -= operation. Read more

impl Zero for Dim<[Ix; 0]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 1]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 2]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 3]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 4]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 5]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl Zero for Dim<[Ix; 6]>[src]

fn zero() -> Self[src]

Returns the additive identity element of Self, 0. Read more

fn is_zero(&self) -> bool[src]

Returns true if self is equal to the additive identity.

fn set_zero(&mut self)[src]

Sets self to the additive identity element of Self, 0.

impl<I: Copy + ?Sized> Copy for Dim<I>[src]

impl<I: Eq + ?Sized> Eq for Dim<I>[src]

impl<I: ?Sized> StructuralEq for Dim<I>[src]

impl<I: ?Sized> StructuralPartialEq for Dim<I>[src]

Auto Trait Implementations

impl<I: ?Sized> RefUnwindSafe for Dim<I> where
    I: RefUnwindSafe

impl<I: ?Sized> Send for Dim<I> where
    I: Send

impl<I: ?Sized> Sync for Dim<I> where
    I: Sync

impl<I: ?Sized> Unpin for Dim<I> where
    I: Unpin

impl<I: ?Sized> UnwindSafe for Dim<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]