pub trait ElementwiseScalar<A, T>: PlatformInstance{
type Op: ReadOp<Self, T>;
// Required methods
fn add_scalar(
self,
left: A,
right: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn div_scalar(
self,
left: A,
right: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn log_scalar(
self,
arg: A,
base: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn mul_scalar(
self,
left: A,
right: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn pow_scalar(
self,
arg: A,
exp: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn rem_scalar(
self,
left: A,
right: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
fn sub_scalar(
self,
left: A,
right: T,
) -> Result<AccessOp<Self::Op, Self>, Error>;
}
Required Associated Types§
Required Methods§
fn add_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>
fn div_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>
fn log_scalar(self, arg: A, base: T) -> Result<AccessOp<Self::Op, Self>, Error>
fn mul_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>
fn pow_scalar(self, arg: A, exp: T) -> Result<AccessOp<Self::Op, Self>, Error>
fn rem_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>
fn sub_scalar( self, left: A, right: T, ) -> 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.