Struct ella_common::shape::Dyn
source · pub struct Dyn(pub SmallVec<[usize; 4]>);Tuple Fields§
§0: SmallVec<[usize; 4]>Implementations§
Trait Implementations§
source§impl<__AsMutT: ?Sized> AsMut<__AsMutT> for Dynwhere
SmallVec<[usize; 4]>: AsMut<__AsMutT>,
impl<__AsMutT: ?Sized> AsMut<__AsMutT> for Dynwhere SmallVec<[usize; 4]>: 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<'de> Deserialize<'de> for Dyn
impl<'de> Deserialize<'de> for Dyn
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<A, B> Indexer<Dyn> for (A, B)where
A: IndexValue,
B: IndexValue,
impl<A, B> Indexer<Dyn> for (A, B)where A: IndexValue, B: IndexValue,
source§impl<A, B, C> Indexer<Dyn> for (A, B, C)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
impl<A, B, C> Indexer<Dyn> for (A, B, C)where A: IndexValue, B: IndexValue, C: IndexValue,
source§impl<A, B, C, D> Indexer<Dyn> for (A, B, C, D)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
D: IndexValue,
impl<A, B, C, D> Indexer<Dyn> for (A, B, C, D)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue,
source§impl<A, B, C, D, E> Indexer<Dyn> for (A, B, C, D, E)where
A: IndexValue,
B: IndexValue,
C: IndexValue,
D: IndexValue,
E: IndexValue,
impl<A, B, C, D, E> Indexer<Dyn> 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<Dyn> 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<Dyn> for (A, B, C, D, E, F)where A: IndexValue, B: IndexValue, C: IndexValue, D: IndexValue, E: IndexValue, F: IndexValue,
source§impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime Dyn
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime Dyn
source§impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut Dyn
impl<'__deriveMoreLifetime> IntoIterator for &'__deriveMoreLifetime mut Dyn
source§impl IntoIterator for Dyn
impl IntoIterator for Dyn
source§impl RemoveAxis for Dyn
impl RemoveAxis for Dyn
fn remove_axis(&self, axis: Axis) -> Self::Smaller
source§impl Shape for Dyn
impl Shape for Dyn
const NDIM: Option<usize> = None
type Smaller = Dyn
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
impl Eq for Dyn
impl StructuralEq for Dyn
impl StructuralPartialEq for Dyn
Auto Trait Implementations§
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> 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.