pub trait ElementwiseDual<L, R, T>: PlatformInstance{
type Op: ReadOp<Self, T>;
// Required methods
fn add(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn div(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn log(self, arg: L, base: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn mul(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn pow(self, arg: L, exp: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn rem(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>;
fn sub(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>;
}
Required Associated Types§
Required Methods§
fn add(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn div(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn log(self, arg: L, base: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn mul(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn pow(self, arg: L, exp: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn rem(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>
fn sub(self, left: L, right: R) -> Result<AccessOp<Self::Op, Self>, Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.