Struct ella_common::shape::Const
source · pub struct Const<const D: usize>(pub [usize; D]);Tuple Fields§
§0: [usize; D]Trait Implementations§
source§impl<__AsMutT: ?Sized, const D: usize> AsMut<__AsMutT> for Const<D>where
[usize; D]: AsMut<__AsMutT>,
impl<__AsMutT: ?Sized, const D: usize> AsMut<__AsMutT> for Const<D>where [usize; D]: AsMut<__AsMutT>,
source§fn as_mut(&mut self) -> &mut __AsMutT
fn as_mut(&mut self) -> &mut __AsMutT
Converts this type into a mutable reference of the (usually inferred) input type.
source§impl<__AsRefT: ?Sized, const D: usize> AsRef<__AsRefT> for Const<D>where
[usize; D]: AsRef<__AsRefT>,
impl<__AsRefT: ?Sized, const D: usize> AsRef<__AsRefT> for Const<D>where [usize; D]: AsRef<__AsRefT>,
source§impl<__IdxT, const D: usize> IndexMut<__IdxT> for Const<D>where
[usize; D]: IndexMut<__IdxT>,
impl<__IdxT, const D: usize> IndexMut<__IdxT> for Const<D>where [usize; D]: IndexMut<__IdxT>,
source§impl<I> Indexer<Const<1>> for Iwhere
I: IndexValue,
impl<I> Indexer<Const<1>> for Iwhere I: IndexValue,
source§impl<A, B> Indexer<Const<2>> for (A, B)where
A: IndexValue,
B: IndexValue,
impl<A, B> Indexer<Const<2>> for (A, B)where A: IndexValue, B: IndexValue,
source§impl<A, B, C> Indexer<Const<3>> for (A, B, C)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
impl<A, B, C> Indexer<Const<3>> for (A, B, C)where A: IndexValue, B: IndexValue, C: IndexValue,
source§impl<A, B, C, D> Indexer<Const<4>> for (A, B, C, D)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
D: IndexValue,
impl<A, B, C, D> Indexer<Const<4>> for (A, B, C, D)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue,
source§impl<A, B, C, D, E> Indexer<Const<5>> for (A, B, C, D, E)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
D: IndexValue,
E: IndexValue,
impl<A, B, C, D, E> Indexer<Const<5>> for (A, B, C, D, E)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue,
source§impl<A, B, C, D, E, F> Indexer<Const<6>> for (A, B, C, D, E, F)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
D: IndexValue,
E: IndexValue,
F: IndexValue,
impl<A, B, C, D, E, F> Indexer<Const<6>> for (A, B, C, D, E, F)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue, F: IndexValue,
source§impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime Const<D>
impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime Const<D>
source§impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime mut Const<D>
impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime mut Const<D>
source§impl<const D: usize> IntoIterator for Const<D>
impl<const D: usize> IntoIterator for Const<D>
source§impl<const D: usize> PartialEq<Const<D>> for Const<D>
impl<const D: usize> PartialEq<Const<D>> for Const<D>
source§impl RemoveAxis for Const<1>
impl RemoveAxis for Const<1>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl RemoveAxis for Const<2>
impl RemoveAxis for Const<2>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl RemoveAxis for Const<3>
impl RemoveAxis for Const<3>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl RemoveAxis for Const<4>
impl RemoveAxis for Const<4>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl RemoveAxis for Const<5>
impl RemoveAxis for Const<5>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl RemoveAxis for Const<6>
impl RemoveAxis for Const<6>
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<0>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Dyn
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
source§impl Shape for Const<{ _ }>
impl Shape for Const<{ _ }>
const NDIM: Option<usize> = _
type Smaller = Const<{$n - 1}>
type Larger = Const<{$n + 1}>
fn ndim(&self) -> usize
fn size(&self) -> usize
fn zeros(_ndim: usize) -> Self
fn slice(&self) -> &[usize]
fn slice_mut(&mut self) -> &mut [usize]
fn as_dyn(&self) -> Dyn
fn broadcast<In, Out>(&self, other: &In) -> Result<Out>where In: Shape, Out: Shape,
fn indices(&self) -> ShapeIndexIter<Self> ⓘ
fn axis(&self, axis: Axis) -> usize
impl<const D: usize> Eq for Const<D>
impl<const D: usize> StructuralEq for Const<D>
impl<const D: usize> StructuralPartialEq for Const<D>
Auto Trait Implementations§
impl<const D: usize> RefUnwindSafe for Const<D>
impl<const D: usize> Send for Const<D>
impl<const D: usize> Sync for Const<D>
impl<const D: usize> Unpin for Const<D>
impl<const D: usize> UnwindSafe for Const<D>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.