ella_tensor

Struct Const

Source
pub struct Const<const D: usize>(pub [usize; D]);

Tuple Fields§

§0: [usize; D]

Trait Implementations§

Source§

impl<__AsMutT, const D: usize> AsMut<__AsMutT> for Const<D>
where [usize; D]: AsMut<__AsMutT>, __AsMutT: ?Sized,

Source§

fn as_mut(&mut self) -> &mut __AsMutT

Converts this type into a mutable reference of the (usually inferred) input type.
Source§

impl<__AsRefT, const D: usize> AsRef<__AsRefT> for Const<D>
where [usize; D]: AsRef<__AsRefT>, __AsRefT: ?Sized,

Source§

fn as_ref(&self) -> &__AsRefT

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<const D: usize> Clone for Const<D>

Source§

fn clone(&self) -> Const<D>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const D: usize> Debug for Const<D>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Default for Const<0>

Source§

fn default() -> Const<0>

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

impl<const D: usize> From<[usize; D]> for Const<D>

Source§

fn from(original: [usize; D]) -> Const<D>

Converts to this type from the input type.
Source§

impl<const D: usize> From<Const<D>> for Dyn

Source§

fn from(value: Const<D>) -> Dyn

Converts to this type from the input type.
Source§

impl<__IdxT, const D: usize> Index<__IdxT> for Const<D>
where [usize; D]: Index<__IdxT>,

Source§

type Output = <[usize; D] as Index<__IdxT>>::Output

The returned type after indexing.
Source§

fn index(&self, idx: __IdxT) -> &<Const<D> as Index<__IdxT>>::Output

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

impl<__IdxT, const D: usize> IndexMut<__IdxT> for Const<D>
where [usize; D]: IndexMut<__IdxT>,

Source§

fn index_mut(&mut self, idx: __IdxT) -> &mut <Const<D> as Index<__IdxT>>::Output

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

impl<I> Indexer<Const<0>> for [I; 0]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<0>, strides: &Const<0>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<0>, strides: &Const<0>) -> isize

Source§

impl Indexer<Const<0>> for ()

Source§

fn index_checked(&self, shape: &Const<0>, strides: &Const<0>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<0>, strides: &Const<0>) -> isize

Source§

impl<I> Indexer<Const<1>> for [I; 1]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<1>, strides: &Const<1>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<1>, strides: &Const<1>) -> isize

Source§

impl<A> Indexer<Const<1>> for (A,)
where A: IndexValue,

Source§

fn index_checked(&self, shape: &Const<1>, strides: &Const<1>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<1>, strides: &Const<1>) -> isize

Source§

impl<I> Indexer<Const<1>> for I
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<1>, strides: &Const<1>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<1>, strides: &Const<1>) -> isize

Source§

impl<I> Indexer<Const<2>> for [I; 2]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<2>, strides: &Const<2>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<2>, strides: &Const<2>) -> isize

Source§

impl<A, B> Indexer<Const<2>> for (A, B)
where A: IndexValue, B: IndexValue,

Source§

fn index_checked(&self, shape: &Const<2>, strides: &Const<2>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<2>, strides: &Const<2>) -> isize

Source§

impl<I> Indexer<Const<3>> for [I; 3]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<3>, strides: &Const<3>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<3>, strides: &Const<3>) -> isize

Source§

impl<A, B, C> Indexer<Const<3>> for (A, B, C)
where A: IndexValue, B: IndexValue, C: IndexValue,

Source§

fn index_checked(&self, shape: &Const<3>, strides: &Const<3>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<3>, strides: &Const<3>) -> isize

Source§

impl<I> Indexer<Const<4>> for [I; 4]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<4>, strides: &Const<4>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<4>, strides: &Const<4>) -> isize

Source§

impl<A, B, C, D> Indexer<Const<4>> for (A, B, C, D)

Source§

fn index_checked(&self, shape: &Const<4>, strides: &Const<4>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<4>, strides: &Const<4>) -> isize

Source§

impl<I> Indexer<Const<5>> for [I; 5]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<5>, strides: &Const<5>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<5>, strides: &Const<5>) -> isize

Source§

impl<A, B, C, D, E> Indexer<Const<5>> for (A, B, C, D, E)

Source§

fn index_checked(&self, shape: &Const<5>, strides: &Const<5>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<5>, strides: &Const<5>) -> isize

Source§

impl<I> Indexer<Const<6>> for [I; 6]
where I: IndexValue,

Source§

fn index_checked(&self, shape: &Const<6>, strides: &Const<6>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<6>, strides: &Const<6>) -> isize

Source§

impl<A, B, C, D, E, F> Indexer<Const<6>> for (A, B, C, D, E, F)

Source§

fn index_checked(&self, shape: &Const<6>, strides: &Const<6>) -> Option<isize>

Source§

fn index_unchecked(&self, shape: &Const<6>, strides: &Const<6>) -> isize

Source§

impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime Const<D>

Source§

type Item = <&'__deriveMoreLifetime [usize; D] as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = <&'__deriveMoreLifetime [usize; D] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter( self, ) -> <&'__deriveMoreLifetime Const<D> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'__deriveMoreLifetime, const D: usize> IntoIterator for &'__deriveMoreLifetime mut Const<D>

Source§

type Item = <&'__deriveMoreLifetime mut [usize; D] as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = <&'__deriveMoreLifetime mut [usize; D] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter( self, ) -> <&'__deriveMoreLifetime mut Const<D> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl<const D: usize> IntoIterator for Const<D>

Source§

type Item = <[usize; D] as IntoIterator>::Item

The type of the elements being iterated over.
Source§

type IntoIter = <[usize; D] as IntoIterator>::IntoIter

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> <Const<D> as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
Source§

impl NdimAdd<Const<0>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#2}::Output::{constant#0}>

Source§

impl NdimAdd<Const<0>> for Const<2>

Source§

type Output = Const<ella_common::::shape::add::{impl#10}::Output::{constant#0}>

Source§

impl NdimAdd<Const<0>> for Const<3>

Source§

type Output = Const<ella_common::::shape::add::{impl#18}::Output::{constant#0}>

Source§

impl NdimAdd<Const<0>> for Const<4>

Source§

type Output = Const<ella_common::::shape::add::{impl#26}::Output::{constant#0}>

Source§

impl NdimAdd<Const<0>> for Const<5>

Source§

type Output = Const<ella_common::::shape::add::{impl#34}::Output::{constant#0}>

Source§

impl NdimAdd<Const<0>> for Const<6>

Source§

type Output = Const<ella_common::::shape::add::{impl#42}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#3}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<2>

Source§

type Output = Const<ella_common::::shape::add::{impl#11}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<3>

Source§

type Output = Const<ella_common::::shape::add::{impl#19}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<4>

Source§

type Output = Const<ella_common::::shape::add::{impl#27}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<5>

Source§

type Output = Const<ella_common::::shape::add::{impl#35}::Output::{constant#0}>

Source§

impl NdimAdd<Const<1>> for Const<6>

Source§

impl NdimAdd<Const<2>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#4}::Output::{constant#0}>

Source§

impl NdimAdd<Const<2>> for Const<2>

Source§

type Output = Const<ella_common::::shape::add::{impl#12}::Output::{constant#0}>

Source§

impl NdimAdd<Const<2>> for Const<3>

Source§

type Output = Const<ella_common::::shape::add::{impl#20}::Output::{constant#0}>

Source§

impl NdimAdd<Const<2>> for Const<4>

Source§

type Output = Const<ella_common::::shape::add::{impl#28}::Output::{constant#0}>

Source§

impl NdimAdd<Const<2>> for Const<5>

Source§

impl NdimAdd<Const<2>> for Const<6>

Source§

impl NdimAdd<Const<3>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#5}::Output::{constant#0}>

Source§

impl NdimAdd<Const<3>> for Const<2>

Source§

type Output = Const<ella_common::::shape::add::{impl#13}::Output::{constant#0}>

Source§

impl NdimAdd<Const<3>> for Const<3>

Source§

type Output = Const<ella_common::::shape::add::{impl#21}::Output::{constant#0}>

Source§

impl NdimAdd<Const<3>> for Const<4>

Source§

impl NdimAdd<Const<3>> for Const<5>

Source§

impl NdimAdd<Const<3>> for Const<6>

Source§

impl NdimAdd<Const<4>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#6}::Output::{constant#0}>

Source§

impl NdimAdd<Const<4>> for Const<2>

Source§

type Output = Const<ella_common::::shape::add::{impl#14}::Output::{constant#0}>

Source§

impl NdimAdd<Const<4>> for Const<3>

Source§

impl NdimAdd<Const<4>> for Const<4>

Source§

impl NdimAdd<Const<4>> for Const<5>

Source§

impl NdimAdd<Const<4>> for Const<6>

Source§

impl NdimAdd<Const<5>> for Const<1>

Source§

type Output = Const<ella_common::::shape::add::{impl#7}::Output::{constant#0}>

Source§

impl NdimAdd<Const<5>> for Const<2>

Source§

impl NdimAdd<Const<5>> for Const<3>

Source§

impl NdimAdd<Const<5>> for Const<4>

Source§

impl NdimAdd<Const<5>> for Const<5>

Source§

impl NdimAdd<Const<5>> for Const<6>

Source§

impl NdimAdd<Const<6>> for Const<1>

Source§

impl NdimAdd<Const<6>> for Const<2>

Source§

impl NdimAdd<Const<6>> for Const<3>

Source§

impl NdimAdd<Const<6>> for Const<4>

Source§

impl NdimAdd<Const<6>> for Const<5>

Source§

impl NdimAdd<Const<6>> for Const<6>

Source§

impl NdimAdd<Dyn> for Const<1>

Source§

impl NdimAdd<Dyn> for Const<2>

Source§

impl NdimAdd<Dyn> for Const<3>

Source§

impl NdimAdd<Dyn> for Const<4>

Source§

impl NdimAdd<Dyn> for Const<5>

Source§

impl NdimAdd<Dyn> for Const<6>

Source§

impl<S> NdimAdd<S> for Const<0>
where S: Shape,

Source§

impl NdimMax<Const<0>> for Const<1>

Source§

impl NdimMax<Const<0>> for Const<2>

Source§

impl NdimMax<Const<0>> for Const<3>

Source§

impl NdimMax<Const<0>> for Const<4>

Source§

impl NdimMax<Const<0>> for Const<5>

Source§

impl NdimMax<Const<0>> for Const<6>

Source§

impl NdimMax<Const<1>> for Const<0>

Source§

impl NdimMax<Const<1>> for Const<2>

Source§

impl NdimMax<Const<1>> for Const<3>

Source§

impl NdimMax<Const<1>> for Const<4>

Source§

impl NdimMax<Const<1>> for Const<5>

Source§

impl NdimMax<Const<1>> for Const<6>

Source§

impl NdimMax<Const<1>> for Dyn

Source§

impl NdimMax<Const<2>> for Const<0>

Source§

impl NdimMax<Const<2>> for Const<1>

Source§

impl NdimMax<Const<2>> for Const<3>

Source§

impl NdimMax<Const<2>> for Const<4>

Source§

impl NdimMax<Const<2>> for Const<5>

Source§

impl NdimMax<Const<2>> for Const<6>

Source§

impl NdimMax<Const<2>> for Dyn

Source§

impl NdimMax<Const<3>> for Const<0>

Source§

impl NdimMax<Const<3>> for Const<1>

Source§

impl NdimMax<Const<3>> for Const<2>

Source§

impl NdimMax<Const<3>> for Const<4>

Source§

impl NdimMax<Const<3>> for Const<5>

Source§

impl NdimMax<Const<3>> for Const<6>

Source§

impl NdimMax<Const<3>> for Dyn

Source§

impl NdimMax<Const<4>> for Const<0>

Source§

impl NdimMax<Const<4>> for Const<1>

Source§

impl NdimMax<Const<4>> for Const<2>

Source§

impl NdimMax<Const<4>> for Const<3>

Source§

impl NdimMax<Const<4>> for Const<5>

Source§

impl NdimMax<Const<4>> for Const<6>

Source§

impl NdimMax<Const<4>> for Dyn

Source§

impl NdimMax<Const<5>> for Const<0>

Source§

impl NdimMax<Const<5>> for Const<1>

Source§

impl NdimMax<Const<5>> for Const<2>

Source§

impl NdimMax<Const<5>> for Const<3>

Source§

impl NdimMax<Const<5>> for Const<4>

Source§

impl NdimMax<Const<5>> for Const<6>

Source§

impl NdimMax<Const<5>> for Dyn

Source§

impl NdimMax<Const<6>> for Const<0>

Source§

impl NdimMax<Const<6>> for Const<1>

Source§

impl NdimMax<Const<6>> for Const<2>

Source§

impl NdimMax<Const<6>> for Const<3>

Source§

impl NdimMax<Const<6>> for Const<4>

Source§

impl NdimMax<Const<6>> for Const<5>

Source§

impl NdimMax<Const<6>> for Dyn

Source§

impl NdimMax<Dyn> for Const<1>

Source§

impl NdimMax<Dyn> for Const<2>

Source§

impl NdimMax<Dyn> for Const<3>

Source§

impl NdimMax<Dyn> for Const<4>

Source§

impl NdimMax<Dyn> for Const<5>

Source§

impl NdimMax<Dyn> for Const<6>

Source§

impl<const D: usize> PartialEq for Const<D>

Source§

fn eq(&self, other: &Const<D>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl RemoveAxis for Const<1>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<1> as Shape>::Smaller

Source§

impl RemoveAxis for Const<2>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<2> as Shape>::Smaller

Source§

impl RemoveAxis for Const<3>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<3> as Shape>::Smaller

Source§

impl RemoveAxis for Const<4>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<4> as Shape>::Smaller

Source§

impl RemoveAxis for Const<5>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<5> as Shape>::Smaller

Source§

impl RemoveAxis for Const<6>

Source§

fn remove_axis(&self, axis: Axis) -> <Const<6> as Shape>::Smaller

Source§

impl Shape for Const<0>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<0>

Source§

type Larger = Const<ella_common::::shape::{impl#41}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<0>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<1>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#44}::Smaller::{constant#0}>

Source§

type Larger = Const<ella_common::::shape::{impl#44}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<1>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<2>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#47}::Smaller::{constant#0}>

Source§

type Larger = Const<ella_common::::shape::{impl#47}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<2>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<3>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#50}::Smaller::{constant#0}>

Source§

type Larger = Const<ella_common::::shape::{impl#50}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<3>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<4>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#53}::Smaller::{constant#0}>

Source§

type Larger = Const<ella_common::::shape::{impl#53}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<4>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<5>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#56}::Smaller::{constant#0}>

Source§

type Larger = Const<ella_common::::shape::{impl#56}::Larger::{constant#0}>

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<5>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl Shape for Const<6>

Source§

const NDIM: Option<usize>

Source§

type Smaller = Const<ella_common::::shape::{impl#59}::Smaller::{constant#0}>

Source§

type Larger = Dyn

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(_ndim: usize) -> Const<6>

Source§

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

Source§

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

Source§

fn as_dyn(&self) -> Dyn

Source§

fn broadcast<In, Out>(&self, other: &In) -> Result<Out, Error>
where In: Shape, Out: Shape,

Source§

fn indices(&self) -> ShapeIndexIter<Self>

Source§

fn axis(&self, axis: Axis) -> usize

Source§

impl<const D: usize> Eq for Const<D>

Source§

impl<const D: usize> StructuralPartialEq for Const<D>

Auto Trait Implementations§

§

impl<const D: usize> Freeze for Const<D>

§

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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 Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

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 Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<S> Indexer<S> for S
where S: Shape,

Source§

fn index_checked(&self, shape: &S, strides: &S) -> Option<isize>

Source§

fn index_unchecked(&self, _shape: &S, strides: &S) -> isize

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<S> IntoShape for S
where S: Shape,

Source§

type Shape = S

Source§

fn into_shape(self) -> <S as IntoShape>::Shape

Source§

impl<S> NdimMax<S> for S
where S: Shape,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T