[−][src]Struct ndarray::Dim
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]
Trait Implementations
impl<I> Add<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: Self) -> Self
[src]
impl Add<usize> for Dim<[Ix; 1]>
[src]
type Output = Self
The resulting type after applying the +
operator.
pub fn add(self, rhs: Ix) -> Self
[src]
impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn add_assign(&mut self, rhs: &Self)
[src]
impl<I> AddAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn add_assign(&mut self, rhs: Self)
[src]
impl AddAssign<usize> for Dim<[Ix; 1]>
[src]
pub fn add_assign(&mut self, rhs: Ix)
[src]
impl<I: Clone + ?Sized> Clone for Dim<I>
[src]
impl<I: Copy + ?Sized> Copy for Dim<I>
[src]
impl<I> Debug for Dim<I> where
I: Debug,
[src]
I: Debug,
impl<I: Default + ?Sized> Default for Dim<I>
[src]
impl<'de, I> Deserialize<'de> for Dim<I> where
I: Deserialize<'de>,
[src]
I: Deserialize<'de>,
Requires crate feature "serde"
pub fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Dimension for Dim<[Ix; 0]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 0]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn _fastest_varying_stride_order(&self) -> Self
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn next_for(&self, _index: Self) -> Option<Self>
[src]
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, _ignore: Axis) -> Self::Smaller
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 1]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 1]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn next_for(&self, index: Self) -> Option<Self>
[src]
pub fn equal(&self, rhs: &Self) -> bool
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn default_strides(&self) -> Self
[src]
pub fn _fastest_varying_stride_order(&self) -> Self
[src]
pub fn min_stride_axis(&self, _: &Self) -> Axis
[src]
pub fn max_stride_axis(&self, _: &Self) -> Axis
[src]
pub fn first_index(&self) -> Option<Self>
[src]
pub fn stride_offset(index: &Self, stride: &Self) -> isize
[src]
pub fn stride_offset_checked(
&self,
stride: &Self,
index: &Self
) -> Option<isize>
[src]
&self,
stride: &Self,
index: &Self
) -> Option<isize>
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn from_dimension<D2: Dimension>(d: &D2) -> Option<Self>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 2]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 2]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn next_for(&self, index: Self) -> Option<Self>
[src]
pub fn equal(&self, rhs: &Self) -> bool
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn last_elem(&self) -> usize
[src]
pub fn set_last_elem(&mut self, i: usize)
[src]
pub fn default_strides(&self) -> Self
[src]
pub fn fortran_strides(&self) -> Self
[src]
pub fn _fastest_varying_stride_order(&self) -> Self
[src]
pub fn min_stride_axis(&self, strides: &Self) -> Axis
[src]
pub fn first_index(&self) -> Option<Self>
[src]
pub fn stride_offset(index: &Self, strides: &Self) -> isize
[src]
pub fn stride_offset_checked(
&self,
strides: &Self,
index: &Self
) -> Option<isize>
[src]
&self,
strides: &Self,
index: &Self
) -> Option<isize>
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 3]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 3]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn size(&self) -> usize
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn next_for(&self, index: Self) -> Option<Self>
[src]
pub fn stride_offset(index: &Self, strides: &Self) -> isize
[src]
pub fn stride_offset_checked(
&self,
strides: &Self,
index: &Self
) -> Option<isize>
[src]
&self,
strides: &Self,
index: &Self
) -> Option<isize>
pub fn _fastest_varying_stride_order(&self) -> Self
[src]
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 4]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 4]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 5]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 5]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[Ix; 6]>
[src]
pub const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex; 6]
SliceArg
is the type which is used to specify slicing for this
dimension. 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
pub fn ndim(&self) -> usize
[src]
pub fn into_pattern(self) -> Self::Pattern
[src]
pub fn slice(&self) -> &[Ix]
[src]
pub fn slice_mut(&mut self) -> &mut [Ix]
[src]
pub fn zeros(ndim: usize) -> Self
[src]
pub fn insert_axis(&self, axis: Axis) -> Self::Larger
[src]
pub fn try_remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
pub fn size(&self) -> usize
[src]
pub fn size_checked(&self) -> Option<usize>
[src]
pub fn as_array_view(&self) -> ArrayView1<'_, Ix>
[src]
pub fn as_array_view_mut(&mut self) -> ArrayViewMut1<'_, Ix>
[src]
pub fn into_dyn(self) -> IxDyn
[src]
pub fn __private__(&self) -> PrivateMarker
[src]
impl<I: Eq + ?Sized> Eq for Dim<I>
[src]
impl<I: Hash + ?Sized> Hash for Dim<I>
[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<usize> for Dim<[Ix; 0]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 1]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 2]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 3]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 4]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 5]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<[Ix; 6]>
[src]
type Output = usize
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl Index<usize> for Dim<IxDynImpl>
[src]
type Output = <IxDynImpl as Index<usize>>::Output
The returned type after indexing.
pub fn index(&self, index: usize) -> &Self::Output
[src]
impl IndexMut<usize> for Dim<[Ix; 0]>
[src]
impl IndexMut<usize> for Dim<[Ix; 1]>
[src]
impl IndexMut<usize> for Dim<[Ix; 2]>
[src]
impl IndexMut<usize> for Dim<[Ix; 3]>
[src]
impl IndexMut<usize> for Dim<[Ix; 4]>
[src]
impl IndexMut<usize> for Dim<[Ix; 5]>
[src]
impl IndexMut<usize> for Dim<[Ix; 6]>
[src]
impl IndexMut<usize> for Dim<IxDynImpl>
[src]
impl<I> Mul<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Self) -> Self
[src]
impl<I> Mul<usize> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Self
The resulting type after applying the *
operator.
pub fn mul(self, rhs: Ix) -> Self
[src]
impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn mul_assign(&mut self, rhs: &Self)
[src]
impl<I> MulAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn mul_assign(&mut self, rhs: Self)
[src]
impl<I> MulAssign<usize> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn mul_assign(&mut self, rhs: Ix)
[src]
impl NdIndex<Dim<[usize; 0]>> for ()
[src]
pub fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix0) -> isize
[src]
impl NdIndex<Dim<[usize; 0]>> for [Ix; 0]
[src]
pub fn index_checked(&self, dim: &Ix0, strides: &Ix0) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix0) -> isize
[src]
impl NdIndex<Dim<[usize; 1]>> for Ix
[src]
pub fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &Ix1) -> isize
[src]
impl NdIndex<Dim<[usize; 1]>> for [Ix; 1]
[src]
pub fn index_checked(&self, dim: &Ix1, strides: &Ix1) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix1) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for (Ix, Ix)
[src]
pub fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &Ix2) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for [Ix; 2]
[src]
pub fn index_checked(&self, dim: &Ix2, strides: &Ix2) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix2) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for (Ix, Ix, Ix)
[src]
pub fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &Ix3) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for [Ix; 3]
[src]
pub fn index_checked(&self, dim: &Ix3, strides: &Ix3) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix3) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for (Ix, Ix, Ix, Ix)
[src]
pub fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &Ix4) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for [Ix; 4]
[src]
pub fn index_checked(&self, dim: &Ix4, strides: &Ix4) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix4) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for (Ix, Ix, Ix, Ix, Ix)
[src]
pub fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &Ix5) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for [Ix; 5]
[src]
pub fn index_checked(&self, dim: &Ix5, strides: &Ix5) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix5) -> isize
[src]
impl NdIndex<Dim<[usize; 6]>> for [Ix; 6]
[src]
pub fn index_checked(&self, dim: &Ix6, strides: &Ix6) -> Option<isize>
[src]
pub fn index_unchecked(&self, _strides: &Ix6) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Ix
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 0]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 4]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 5]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 5]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 6]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 6]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a IxDyn
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [Ix]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 0]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 1]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 1]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 2]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 2]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 3]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [Ix; 3]
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[Ix; 4]>
[src]
pub fn index_checked(&self, dim: &IxDyn, strides: &IxDyn) -> Option<isize>
[src]
pub fn index_unchecked(&self, strides: &IxDyn) -> isize
[src]
impl<I: PartialEq + ?Sized> PartialEq<Dim<I>> for Dim<I>
[src]
impl<I: ?Sized> PartialEq<I> for Dim<I> where
I: PartialEq,
[src]
I: PartialEq,
impl RemoveAxis for Dim<IxDynImpl>
[src]
pub fn remove_axis(&self, axis: Axis) -> Self
[src]
impl RemoveAxis for Dim<[Ix; 1]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Ix0
[src]
impl RemoveAxis for Dim<[Ix; 2]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Ix1
[src]
impl RemoveAxis for Dim<[Ix; 3]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 4]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 5]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl RemoveAxis for Dim<[Ix; 6]>
[src]
pub fn remove_axis(&self, axis: Axis) -> Self::Smaller
[src]
impl<I> Serialize for Dim<I> where
I: Serialize,
[src]
I: Serialize,
Requires crate feature "serde"
pub fn serialize<Se>(&self, serializer: Se) -> Result<Se::Ok, Se::Error> where
Se: Serializer,
[src]
Se: Serializer,
impl<I: ?Sized> StructuralEq for Dim<I>
[src]
impl<I: ?Sized> StructuralPartialEq for Dim<I>
[src]
impl<I> Sub<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Self) -> Self
[src]
impl Sub<usize> for Dim<[Ix; 1]>
[src]
type Output = Self
The resulting type after applying the -
operator.
pub fn sub(self, rhs: Ix) -> Self
[src]
impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn sub_assign(&mut self, rhs: &Self)
[src]
impl<I> SubAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
pub fn sub_assign(&mut self, rhs: Self)
[src]
impl SubAssign<usize> for Dim<[Ix; 1]>
[src]
pub fn sub_assign(&mut self, rhs: Ix)
[src]
impl Zero for Dim<[Ix; 0]>
[src]
impl Zero for Dim<[Ix; 1]>
[src]
impl Zero for Dim<[Ix; 2]>
[src]
impl Zero for Dim<[Ix; 3]>
[src]
impl Zero for Dim<[Ix; 4]>
[src]
impl Zero for Dim<[Ix; 5]>
[src]
impl Zero for Dim<[Ix; 6]>
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,