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
Trait Implementations
impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn add_assign(&mut self, rhs: &Self)
[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]
impl<I> AddAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn add_assign(&mut self, rhs: Self)
[src]
fn add_assign(&mut self, rhs: Self)
[src]Performs the +=
operation. Read more
impl AddAssign<usize> for Dim<[Ix; 1]>
[src]
impl AddAssign<usize> for Dim<[Ix; 1]>
[src]fn add_assign(&mut self, rhs: Ix)
[src]
fn add_assign(&mut self, rhs: Ix)
[src]Performs the +=
operation. Read more
impl<'de, I> Deserialize<'de> for Dim<I> where
I: Deserialize<'de>,
[src]
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]
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 Dimension for Dim<[Ix; 0]>
[src]
impl Dimension for Dim<[Ix; 0]>
[src]const NDIM: Option<usize>
[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 Smaller = Self
type Smaller = Self
Next smaller dimension (if applicable)
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn _fastest_varying_stride_order(&self) -> Self
[src]
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn zeros(ndim: usize) -> Self
[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 insert_axis(&self, axis: Axis) -> Self::Larger
[src]
fn try_remove_axis(&self, _ignore: Axis) -> Self::Smaller
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn size_checked(&self) -> Option<usize>
[src]Compute the size while checking for overflow.
fn as_array_view(&self) -> ArrayView1<'_, Ix>
[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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 1]>
[src]const NDIM: Option<usize>
[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
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn zeros(ndim: usize) -> Self
[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_checked(&self) -> Option<usize>
[src]
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]
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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 2]>
[src]const NDIM: Option<usize>
[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
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn zeros(ndim: usize) -> Self
[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_checked(&self) -> Option<usize>
[src]
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]
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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 3]>
[src]const NDIM: Option<usize>
[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
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn zeros(ndim: usize) -> Self
[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 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]
fn size_checked(&self) -> Option<usize>
[src]Compute the size while checking for overflow.
fn as_array_view(&self) -> ArrayView1<'_, Ix>
[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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 4]>
[src]const NDIM: Option<usize>
[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
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn zeros(ndim: usize) -> Self
[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_checked(&self) -> Option<usize>
[src]
fn size_checked(&self) -> Option<usize>
[src]Compute the size while checking for overflow.
fn as_array_view(&self) -> ArrayView1<'_, Ix>
[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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 5]>
[src]const NDIM: Option<usize>
[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
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn zeros(ndim: usize) -> Self
[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_checked(&self) -> Option<usize>
[src]
fn size_checked(&self) -> Option<usize>
[src]Compute the size while checking for overflow.
fn as_array_view(&self) -> ArrayView1<'_, Ix>
[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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl Dimension for Dim<[Ix; 6]>
[src]const NDIM: Option<usize>
[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)
type Pattern = (Ix, Ix, Ix, Ix, Ix, Ix)
Pattern matching friendly form of the dimension value. Read more
fn into_pattern(self) -> Self::Pattern
[src]
fn into_pattern(self) -> Self::Pattern
[src]Convert the dimension into a pattern matching friendly value.
fn slice(&self) -> &[Ix]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [Ix]ⓘ
[src]
fn zeros(ndim: usize) -> Self
[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_checked(&self) -> Option<usize>
[src]
fn size_checked(&self) -> Option<usize>
[src]Compute the size while checking for overflow.
fn as_array_view(&self) -> ArrayView1<'_, Ix>
[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]
fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]Borrow as a read-write array view.
fn __private__(&self) -> PrivateMarker
[src]
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<'a, I> MulAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn mul_assign(&mut self, rhs: &Self)
[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]
impl<I> MulAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn mul_assign(&mut self, rhs: Self)
[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]
impl<I> MulAssign<usize> for Dim<I> where
Dim<I>: Dimension,
[src]fn mul_assign(&mut self, rhs: Ix)
[src]
fn mul_assign(&mut self, rhs: Ix)
[src]Performs the *=
operation. Read more
impl NdIndex<Dim<[usize; 0]>> for ()
[src]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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]
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 RemoveAxis for Dim<IxDynImpl>
[src]
impl RemoveAxis for Dim<IxDynImpl>
[src]fn remove_axis(&self, axis: Axis) -> Self
[src]
impl RemoveAxis for Dim<[Ix; 1]>
[src]
impl RemoveAxis for Dim<[Ix; 1]>
[src]fn remove_axis(&self, axis: Axis) -> Ix0
[src]
impl RemoveAxis for Dim<[Ix; 2]>
[src]
impl RemoveAxis for Dim<[Ix; 2]>
[src]fn remove_axis(&self, axis: Axis) -> Ix1
[src]
impl RemoveAxis for Dim<[Ix; 3]>
[src]
impl RemoveAxis for Dim<[Ix; 3]>
[src]fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 4]>
[src]
impl RemoveAxis for Dim<[Ix; 4]>
[src]fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 5]>
[src]
impl RemoveAxis for Dim<[Ix; 5]>
[src]fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 6]>
[src]
impl RemoveAxis for Dim<[Ix; 6]>
[src]fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl<T, Dout> SliceArg<Dim<[usize; 0]>> for SliceInfo<T, Ix0, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]
impl<T, Dout> SliceArg<Dim<[usize; 0]>> for SliceInfo<T, Ix0, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 1]>> for SliceInfo<T, Ix1, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 2]>> for SliceInfo<T, Ix2, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 3]>> for SliceInfo<T, Ix3, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 4]>> for SliceInfo<T, Ix4, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 5]>> for SliceInfo<T, Ix5, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Dout> SliceArg<Dim<[usize; 6]>> for SliceInfo<T, Ix6, Dout> where
T: AsRef<[SliceInfoElem]>,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl<T, Din, Dout> SliceArg<Dim<IxDynImpl>> for SliceInfo<T, Din, Dout> where
T: AsRef<[SliceInfoElem]>,
Din: Dimension,
Dout: Dimension,
[src]type OutDim = Dout
type OutDim = Dout
Dimensionality of the output array.
fn __private__(&self) -> PrivateMarker
[src]
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]
impl SliceArg<Dim<IxDynImpl>> for [SliceInfoElem]
[src]fn __private__(&self) -> PrivateMarker
[src]
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<'a, I> SubAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn sub_assign(&mut self, rhs: &Self)
[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]
impl<I> SubAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]fn sub_assign(&mut self, rhs: Self)
[src]
fn sub_assign(&mut self, rhs: Self)
[src]Performs the -=
operation. Read more
impl SubAssign<usize> for Dim<[Ix; 1]>
[src]
impl SubAssign<usize> for Dim<[Ix; 1]>
[src]fn sub_assign(&mut self, rhs: Ix)
[src]
fn sub_assign(&mut self, rhs: Ix)
[src]Performs the -=
operation. Read more
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,
I: RefUnwindSafe,
impl<I: ?Sized> Send for Dim<I> where
I: Send,
I: Send,
impl<I: ?Sized> Sync for Dim<I> where
I: Sync,
I: Sync,
impl<I: ?Sized> Unpin for Dim<I> where
I: Unpin,
I: Unpin,
impl<I: ?Sized> UnwindSafe for Dim<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,