Trait ElementwiseBooleanScalar

Source
pub trait ElementwiseBooleanScalar<A, T>: PlatformInstance {
    type Op: ReadOp<Self, u8>;

    // Required methods
    fn and_scalar(
        self,
        left: A,
        right: T,
    ) -> Result<AccessOp<Self::Op, Self>, Error>;
    fn or_scalar(
        self,
        left: A,
        right: T,
    ) -> Result<AccessOp<Self::Op, Self>, Error>;
    fn xor_scalar(
        self,
        left: A,
        right: T,
    ) -> Result<AccessOp<Self::Op, Self>, Error>;
}

Required Associated Types§

Source

type Op: ReadOp<Self, u8>

Required Methods§

Source

fn and_scalar( self, left: A, right: T, ) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn or_scalar(self, left: A, right: T) -> Result<AccessOp<Self::Op, Self>, Error>

Source

fn xor_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.

Implementors§

Source§

impl<A: Access<T>, T: CType> ElementwiseBooleanScalar<A, T> for Platform

Source§

type Op = Scalar<A, T, u8>

Source§

impl<A: Access<T>, T: CType> ElementwiseBooleanScalar<A, T> for Host

Source§

type Op = Scalar<A, T, u8>