Struct ella_tensor::Dyn
source · pub struct Dyn(pub SmallVec<[usize; 4]>);Tuple Fields§
§0: SmallVec<[usize; 4]>Implementations§
Trait Implementations§
source§impl<__AsMutT> AsMut<__AsMutT> for Dynwhere
SmallVec<[usize; 4]>: AsMut<__AsMutT>,
__AsMutT: ?Sized,
impl<__AsMutT> AsMut<__AsMutT> for Dynwhere SmallVec<[usize; 4]>: AsMut<__AsMutT>, __AsMutT: ?Sized,
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> AsRef<__AsRefT> for Dynwhere
SmallVec<[usize; 4]>: AsRef<__AsRefT>,
__AsRefT: ?Sized,
impl<__AsRefT> AsRef<__AsRefT> for Dynwhere SmallVec<[usize; 4]>: AsRef<__AsRefT>, __AsRefT: ?Sized,
source§impl<'de> Deserialize<'de> for Dyn
impl<'de> Deserialize<'de> for Dyn
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Dyn, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Dyn, <__D as Deserializer<'de>>::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 Serialize for Dyn
impl Serialize for Dyn
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
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) -> Dyn
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, Error>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.