ella_common::shape

Struct Dyn

Source
pub struct Dyn(pub SmallVec<[usize; 4]>);

Tuple Fields§

§0: SmallVec<[usize; 4]>

Implementations§

Source§

impl Dyn

Source

pub fn to_vec(&self) -> Vec<usize>

Trait Implementations§

Source§

impl<__AsMutT: ?Sized> AsMut<__AsMutT> for Dyn
where SmallVec<[usize; 4]>: AsMut<__AsMutT>,

Source§

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

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

impl<__AsRefT: ?Sized> AsRef<__AsRefT> for Dyn
where SmallVec<[usize; 4]>: AsRef<__AsRefT>,

Source§

fn as_ref(&self) -> &__AsRefT

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

impl Clone for Dyn

Source§

fn clone(&self) -> Dyn

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 Debug for Dyn

Source§

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

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

impl<'de> Deserialize<'de> for Dyn

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<&[usize]> for Dyn

Source§

fn from(value: &[usize]) -> Self

Converts to this type from the input type.
Source§

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

Source§

fn from(value: [usize; D]) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl From<Vec<usize>> for Dyn

Source§

fn from(value: Vec<usize>) -> Self

Converts to this type from the input type.
Source§

impl<__IdxT> Index<__IdxT> for Dyn
where SmallVec<[usize; 4]>: Index<__IdxT>,

Source§

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

The returned type after indexing.
Source§

fn index(&self, idx: __IdxT) -> &Self::Output

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

impl<__IdxT> IndexMut<__IdxT> for Dyn
where SmallVec<[usize; 4]>: IndexMut<__IdxT>,

Source§

fn index_mut(&mut self, idx: __IdxT) -> &mut Self::Output

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

impl<T: IndexValue> Indexer<Dyn> for &[T]

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

impl Indexer<Dyn> for ()

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

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

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

impl<T: IndexValue> Indexer<Dyn> for Vec<T>

Source§

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

Source§

fn index_unchecked(&self, shape: &Dyn, strides: &Dyn) -> isize

Source§

impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime Dyn

Source§

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

The type of the elements being iterated over.
Source§

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

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut Dyn

Source§

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

The type of the elements being iterated over.
Source§

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

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl IntoIterator for Dyn

Source§

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

The type of the elements being iterated over.
Source§

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

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

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
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: Shape> NdimAdd<S> for Dyn

Source§

impl NdimMax<Const<1>> for Dyn

Source§

impl NdimMax<Const<2>> for Dyn

Source§

impl NdimMax<Const<3>> for Dyn

Source§

impl NdimMax<Const<4>> for Dyn

Source§

impl NdimMax<Const<5>> for Dyn

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 PartialEq for Dyn

Source§

fn eq(&self, other: &Dyn) -> 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 Dyn

Source§

fn remove_axis(&self, axis: Axis) -> Self::Smaller

Source§

impl Serialize for Dyn

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Shape for Dyn

Source§

const NDIM: Option<usize> = None

Source§

type Smaller = Dyn

Source§

type Larger = Dyn

Source§

fn ndim(&self) -> usize

Source§

fn size(&self) -> usize

Source§

fn zeros(ndim: usize) -> Self

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>
where In: Shape, Out: Shape,

Source§

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

Source§

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

Source§

impl Eq for Dyn

Source§

impl StructuralPartialEq for Dyn

Auto Trait Implementations§

§

impl Freeze for Dyn

§

impl RefUnwindSafe for Dyn

§

impl Send for Dyn

§

impl Sync for Dyn

§

impl Unpin for Dyn

§

impl UnwindSafe for Dyn

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

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

Source§

impl<T> MaybeSendSync for T