[−][src]Struct tract_nnef::prelude::tract_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 = Dim<I>
The resulting type after applying the +
operator.
fn add(self, rhs: Dim<I>) -> Dim<I>
[src]
impl Add<usize> for Dim<[usize; 1]>
[src]
type Output = Dim<[usize; 1]>
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Dim<[usize; 1]>
[src]
impl<'a, I> AddAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn add_assign(&mut self, rhs: &Dim<I>)
[src]
impl<I> AddAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn add_assign(&mut self, rhs: Dim<I>)
[src]
impl AddAssign<usize> for Dim<[usize; 1]>
[src]
fn add_assign(&mut self, rhs: usize)
[src]
impl<I> Clone for Dim<I> where
I: Clone + ?Sized,
[src]
I: Clone + ?Sized,
impl<I> Copy for Dim<I> where
I: Copy + ?Sized,
[src]
I: Copy + ?Sized,
impl<I> Debug for Dim<I> where
I: Debug,
[src]
I: Debug,
impl<I> Default for Dim<I> where
I: Default + ?Sized,
[src]
I: Default + ?Sized,
impl Dimension for Dim<[usize; 4]>
[src]
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 = (usize, usize, usize, usize)
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 3]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 5]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn into_pattern(self) -> <Dim<[usize; 4]> as Dimension>::Pattern
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn zeros(ndim: usize) -> Dim<[usize; 4]>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 4]> as Dimension>::Smaller
[src]
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 2]>
[src]
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 = (usize, usize)
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 1]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 3]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn into_pattern(self) -> <Dim<[usize; 2]> as Dimension>::Pattern
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn zeros(ndim: usize) -> Dim<[usize; 2]>
[src]
fn next_for(&self, index: Dim<[usize; 2]>) -> Option<Dim<[usize; 2]>>
[src]
fn equal(&self, rhs: &Dim<[usize; 2]>) -> bool
[src]
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn last_elem(&self) -> usize
[src]
fn set_last_elem(&mut self, i: usize)
[src]
fn default_strides(&self) -> Dim<[usize; 2]>
[src]
fn fortran_strides(&self) -> Dim<[usize; 2]>
[src]
fn _fastest_varying_stride_order(&self) -> Dim<[usize; 2]>
[src]
fn min_stride_axis(&self, strides: &Dim<[usize; 2]>) -> Axis
[src]
fn first_index(&self) -> Option<Dim<[usize; 2]>>
[src]
fn stride_offset(index: &Dim<[usize; 2]>, strides: &Dim<[usize; 2]>) -> isize
[src]
fn stride_offset_checked(
&self,
strides: &Dim<[usize; 2]>,
index: &Dim<[usize; 2]>
) -> Option<isize>
[src]
&self,
strides: &Dim<[usize; 2]>,
index: &Dim<[usize; 2]>
) -> Option<isize>
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 2]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 2]> as Dimension>::Smaller
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 1]>
[src]
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 = usize
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 0]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 2]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn into_pattern(self) -> <Dim<[usize; 1]> as Dimension>::Pattern
[src]
fn zeros(ndim: usize) -> Dim<[usize; 1]>
[src]
fn next_for(&self, index: Dim<[usize; 1]>) -> Option<Dim<[usize; 1]>>
[src]
fn equal(&self, rhs: &Dim<[usize; 1]>) -> bool
[src]
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn default_strides(&self) -> Dim<[usize; 1]>
[src]
fn _fastest_varying_stride_order(&self) -> Dim<[usize; 1]>
[src]
fn min_stride_axis(&self, &Dim<[usize; 1]>) -> Axis
[src]
fn max_stride_axis(&self, &Dim<[usize; 1]>) -> Axis
[src]
fn first_index(&self) -> Option<Dim<[usize; 1]>>
[src]
fn stride_offset(index: &Dim<[usize; 1]>, stride: &Dim<[usize; 1]>) -> isize
[src]
fn stride_offset_checked(
&self,
stride: &Dim<[usize; 1]>,
index: &Dim<[usize; 1]>
) -> Option<isize>
[src]
&self,
stride: &Dim<[usize; 1]>,
index: &Dim<[usize; 1]>
) -> Option<isize>
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 1]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 1]> as Dimension>::Smaller
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 0]>
[src]
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 = Dim<[usize; 0]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 1]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn _fastest_varying_stride_order(&self) -> Dim<[usize; 0]>
[src]
fn into_pattern(self) -> <Dim<[usize; 0]> as Dimension>::Pattern
[src]
fn zeros(ndim: usize) -> Dim<[usize; 0]>
[src]
fn next_for(&self, _index: Dim<[usize; 0]>) -> Option<Dim<[usize; 0]>>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 0]> as Dimension>::Larger
[src]
fn try_remove_axis(
&self,
_ignore: Axis
) -> <Dim<[usize; 0]> as Dimension>::Smaller
[src]
&self,
_ignore: Axis
) -> <Dim<[usize; 0]> as Dimension>::Smaller
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 3]>
[src]
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 = (usize, usize, usize)
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 2]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 4]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn into_pattern(self) -> <Dim<[usize; 3]> as Dimension>::Pattern
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn size(&self) -> usize
[src]
fn zeros(ndim: usize) -> Dim<[usize; 3]>
[src]
fn next_for(&self, index: Dim<[usize; 3]>) -> Option<Dim<[usize; 3]>>
[src]
fn stride_offset(index: &Dim<[usize; 3]>, strides: &Dim<[usize; 3]>) -> isize
[src]
fn stride_offset_checked(
&self,
strides: &Dim<[usize; 3]>,
index: &Dim<[usize; 3]>
) -> Option<isize>
[src]
&self,
strides: &Dim<[usize; 3]>,
index: &Dim<[usize; 3]>
) -> Option<isize>
fn _fastest_varying_stride_order(&self) -> Dim<[usize; 3]>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 3]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 3]> as Dimension>::Smaller
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<IxDynImpl>
[src]
IxDyn is a "dynamic" index, pretty hard to use when indexing, and memory wasteful, but it allows an arbitrary and dynamic number of axes.
const NDIM: Option<usize>
[src]
type SliceArg = [SliceOrIndex]
SliceArg
is the type which is used to specify slicing for this dimension. Read more
type Pattern = Dim<IxDynImpl>
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<IxDynImpl>
Next smaller dimension (if applicable)
type Larger = Dim<IxDynImpl>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn into_pattern(self) -> <Dim<IxDynImpl> as Dimension>::Pattern
[src]
fn zeros(ndim: usize) -> Dim<IxDynImpl>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<IxDynImpl> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<IxDynImpl> as Dimension>::Smaller
[src]
fn from_dimension<D2>(d: &D2) -> Option<Dim<IxDynImpl>> where
D2: Dimension,
[src]
D2: Dimension,
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 5]>
[src]
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 = (usize, usize, usize, usize, usize)
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 4]>
Next smaller dimension (if applicable)
type Larger = Dim<[usize; 6]>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn into_pattern(self) -> <Dim<[usize; 5]> as Dimension>::Pattern
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn zeros(ndim: usize) -> Dim<[usize; 5]>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 5]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 5]> as Dimension>::Smaller
[src]
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl Dimension for Dim<[usize; 6]>
[src]
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 = (usize, usize, usize, usize, usize, usize)
Pattern matching friendly form of the dimension value. Read more
type Smaller = Dim<[usize; 5]>
Next smaller dimension (if applicable)
type Larger = Dim<IxDynImpl>
Next larger dimension
fn ndim(&self) -> usize
[src]
fn into_pattern(self) -> <Dim<[usize; 6]> as Dimension>::Pattern
[src]
fn slice(&self) -> &[usize]ⓘ
[src]
fn slice_mut(&mut self) -> &mut [usize]ⓘ
[src]
fn zeros(ndim: usize) -> Dim<[usize; 6]>
[src]
fn insert_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Larger
[src]
fn try_remove_axis(&self, axis: Axis) -> <Dim<[usize; 6]> as Dimension>::Smaller
[src]
fn size(&self) -> usize
[src]
fn size_checked(&self) -> Option<usize>
[src]
fn as_array_view(&self) -> ArrayBase<ViewRepr<&usize>, Dim<[usize; 1]>>
[src]
fn as_array_view_mut(
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
[src]
&mut self
) -> ArrayBase<ViewRepr<&mut usize>, Dim<[usize; 1]>>
fn into_dyn(self) -> Dim<IxDynImpl>
[src]
fn __private__(&self) -> PrivateMarker
[src]
impl<I> Eq for Dim<I> where
I: Eq + ?Sized,
[src]
I: Eq + ?Sized,
impl<I> Hash for Dim<I> where
I: Hash + ?Sized,
[src]
I: Hash + ?Sized,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Index<usize> for Dim<[usize; 6]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 6]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 5]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 5]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 3]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 3]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<IxDynImpl>
[src]
type Output = <IxDynImpl as Index<usize>>::Output
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<IxDynImpl> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 2]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 2]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 1]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 1]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 4]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 4]> as Index<usize>>::Output
[src]
impl Index<usize> for Dim<[usize; 0]>
[src]
type Output = usize
The returned type after indexing.
fn index(&self, index: usize) -> &<Dim<[usize; 0]> as Index<usize>>::Output
[src]
impl IndexMut<usize> for Dim<[usize; 4]>
[src]
impl IndexMut<usize> for Dim<IxDynImpl>
[src]
impl IndexMut<usize> for Dim<[usize; 0]>
[src]
impl IndexMut<usize> for Dim<[usize; 1]>
[src]
impl IndexMut<usize> for Dim<[usize; 3]>
[src]
impl IndexMut<usize> for Dim<[usize; 2]>
[src]
impl IndexMut<usize> for Dim<[usize; 5]>
[src]
impl IndexMut<usize> for Dim<[usize; 6]>
[src]
impl<I> Mul<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Dim<I>
The resulting type after applying the *
operator.
fn mul(self, rhs: Dim<I>) -> Dim<I>
[src]
impl<I> Mul<usize> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Dim<I>
The resulting type after applying the *
operator.
fn mul(self, rhs: usize) -> Dim<I>
[src]
impl<'a, I> MulAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn mul_assign(&mut self, rhs: &Dim<I>)
[src]
impl<I> MulAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn mul_assign(&mut self, rhs: Dim<I>)
[src]
impl<I> MulAssign<usize> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn mul_assign(&mut self, rhs: usize)
[src]
impl NdIndex<Dim<[usize; 0]>> for [usize; 0]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 0]>,
strides: &Dim<[usize; 0]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 0]>,
strides: &Dim<[usize; 0]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 0]>) -> isize
[src]
impl NdIndex<Dim<[usize; 0]>> for ()
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 0]>,
strides: &Dim<[usize; 0]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 0]>,
strides: &Dim<[usize; 0]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 0]>) -> isize
[src]
impl NdIndex<Dim<[usize; 1]>> for [usize; 1]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 1]>,
strides: &Dim<[usize; 1]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 1]>,
strides: &Dim<[usize; 1]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 1]>) -> isize
[src]
impl NdIndex<Dim<[usize; 1]>> for usize
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 1]>,
strides: &Dim<[usize; 1]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 1]>,
strides: &Dim<[usize; 1]>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<[usize; 1]>) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for [usize; 2]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 2]>,
strides: &Dim<[usize; 2]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 2]>,
strides: &Dim<[usize; 2]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 2]>) -> isize
[src]
impl NdIndex<Dim<[usize; 2]>> for (usize, usize)
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 2]>,
strides: &Dim<[usize; 2]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 2]>,
strides: &Dim<[usize; 2]>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<[usize; 2]>) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for (usize, usize, usize)
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 3]>,
strides: &Dim<[usize; 3]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 3]>,
strides: &Dim<[usize; 3]>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<[usize; 3]>) -> isize
[src]
impl NdIndex<Dim<[usize; 3]>> for [usize; 3]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 3]>,
strides: &Dim<[usize; 3]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 3]>,
strides: &Dim<[usize; 3]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 3]>) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for [usize; 4]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 4]>,
strides: &Dim<[usize; 4]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 4]>,
strides: &Dim<[usize; 4]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 4]>) -> isize
[src]
impl NdIndex<Dim<[usize; 4]>> for (usize, usize, usize, usize)
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 4]>,
strides: &Dim<[usize; 4]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 4]>,
strides: &Dim<[usize; 4]>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<[usize; 4]>) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for [usize; 5]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 5]>,
strides: &Dim<[usize; 5]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 5]>,
strides: &Dim<[usize; 5]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 5]>) -> isize
[src]
impl NdIndex<Dim<[usize; 5]>> for (usize, usize, usize, usize, usize)
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 5]>,
strides: &Dim<[usize; 5]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 5]>,
strides: &Dim<[usize; 5]>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<[usize; 5]>) -> isize
[src]
impl NdIndex<Dim<[usize; 6]>> for [usize; 6]
[src]
fn index_checked(
&self,
dim: &Dim<[usize; 6]>,
strides: &Dim<[usize; 6]>
) -> Option<isize>
[src]
&self,
dim: &Dim<[usize; 6]>,
strides: &Dim<[usize; 6]>
) -> Option<isize>
fn index_unchecked(&self, _strides: &Dim<[usize; 6]>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 3]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 6]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 4]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 0]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 2]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a Dim<IxDynImpl>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 1]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 3]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 6]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 5]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for usize
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 0]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 1]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 5]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for [usize; 2]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl NdIndex<Dim<IxDynImpl>> for Dim<[usize; 4]>
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl<'a> NdIndex<Dim<IxDynImpl>> for &'a [usize]
[src]
fn index_checked(
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
[src]
&self,
dim: &Dim<IxDynImpl>,
strides: &Dim<IxDynImpl>
) -> Option<isize>
fn index_unchecked(&self, strides: &Dim<IxDynImpl>) -> isize
[src]
impl<I> PartialEq<Dim<I>> for Dim<I> where
I: PartialEq<I> + ?Sized,
[src]
I: PartialEq<I> + ?Sized,
impl<I> PartialEq<I> for Dim<I> where
I: PartialEq<I> + ?Sized,
[src]
I: PartialEq<I> + ?Sized,
impl RemoveAxis for Dim<[usize; 5]>
[src]
impl RemoveAxis for Dim<[usize; 2]>
[src]
impl RemoveAxis for Dim<[usize; 3]>
[src]
impl RemoveAxis for Dim<[usize; 4]>
[src]
impl RemoveAxis for Dim<[usize; 6]>
[src]
impl RemoveAxis for Dim<[usize; 1]>
[src]
impl RemoveAxis for Dim<IxDynImpl>
[src]
fn remove_axis(&self, axis: Axis) -> Dim<IxDynImpl>
[src]
impl<I> Sub<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
type Output = Dim<I>
The resulting type after applying the -
operator.
fn sub(self, rhs: Dim<I>) -> Dim<I>
[src]
impl Sub<usize> for Dim<[usize; 1]>
[src]
type Output = Dim<[usize; 1]>
The resulting type after applying the -
operator.
fn sub(self, rhs: usize) -> Dim<[usize; 1]>
[src]
impl<'a, I> SubAssign<&'a Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn sub_assign(&mut self, rhs: &Dim<I>)
[src]
impl<I> SubAssign<Dim<I>> for Dim<I> where
Dim<I>: Dimension,
[src]
Dim<I>: Dimension,
fn sub_assign(&mut self, rhs: Dim<I>)
[src]
impl SubAssign<usize> for Dim<[usize; 1]>
[src]
fn sub_assign(&mut self, rhs: usize)
[src]
impl Zero for Dim<[usize; 2]>
[src]
impl Zero for Dim<[usize; 3]>
[src]
impl Zero for Dim<[usize; 1]>
[src]
impl Zero for Dim<[usize; 6]>
[src]
impl Zero for Dim<[usize; 0]>
[src]
impl Zero for Dim<[usize; 5]>
[src]
impl Zero for Dim<[usize; 4]>
[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,
fn borrow(&self) -> &TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut TⓘNotable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
[src]
Notable traits for &'_ mut W
impl<'_, W> Write for &'_ mut W where
W: Write + ?Sized, impl<'_, R> Read for &'_ mut R where
R: Read + ?Sized, impl<'_, I> Iterator for &'_ mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;
impl<T> Downcast for T where
T: Any,
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>ⓘNotable traits for Box<W>
impl<W> Write for Box<W> where
W: Write + ?Sized, impl<R> Read for Box<R> where
R: Read + ?Sized, impl<F> Future for Box<F> where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<I> Iterator for Box<I> where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
Notable traits for Box<W>
impl<W> Write for Box<W> where
W: Write + ?Sized, impl<R> Read for Box<R> where
R: Read + ?Sized, impl<F> Future for Box<F> where
F: Unpin + Future + ?Sized, type Output = <F as Future>::Output;impl<I> Iterator for Box<I> where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn as_any(&self) -> &(dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
impl<T> DowncastSync for T where
T: Send + Sync + Any,
T: Send + Sync + Any,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<D> IntoDimension for D where
D: Dimension,
[src]
D: Dimension,
type Dim = D
fn into_dimension(self) -> D
[src]
impl<D> NdIndex<D> for D where
D: Dimension,
[src]
D: Dimension,
fn index_checked(&self, dim: &D, strides: &D) -> Option<isize>
[src]
fn index_unchecked(&self, strides: &D) -> isize
[src]
impl<T> ShapeBuilder for T where
T: IntoDimension,
[src]
T: IntoDimension,
type Dim = <T as IntoDimension>::Dim
type Strides = T
fn into_shape(self) -> Shape<<T as ShapeBuilder>::Dim>
[src]
fn f(self) -> Shape<<T as ShapeBuilder>::Dim>
[src]
fn set_f(self, is_f: bool) -> Shape<<T as ShapeBuilder>::Dim>
[src]
fn strides(self, st: T) -> StrideShape<<T as ShapeBuilder>::Dim>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,