pub enum MdOperand<'a> {
F64Array(&'a Array<f64, DynRank>),
C64Array(&'a Array<Complex64, DynRank>),
F64View(View<'a, f64, DynRank>),
C64View(View<'a, Complex64, DynRank>),
}Expand description
A type-erased einsum operand wrapping mdarray types.
Construct via From impls on owned arrays or views.
Variants§
F64Array(&'a Array<f64, DynRank>)
C64Array(&'a Array<Complex64, DynRank>)
F64View(View<'a, f64, DynRank>)
C64View(View<'a, Complex64, DynRank>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MdOperand<'a>
impl<'a> RefUnwindSafe for MdOperand<'a>
impl<'a> Send for MdOperand<'a>
impl<'a> Sync for MdOperand<'a>
impl<'a> Unpin for MdOperand<'a>
impl<'a> UnwindSafe for MdOperand<'a>
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<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> IntoCloned<T> for T
impl<T> IntoCloned<T> for T
§fn clone_to(self, target: &mut T)
fn clone_to(self, target: &mut T)
Moves an existing object or clones from a reference to the target object.
§fn into_cloned(self) -> T
fn into_cloned(self) -> T
Returns an existing object or a new clone from a reference.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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