pub trait NDArrayBooleanScalar: NDArray + Sized {
    type Output: Access<u8>;

    // Required methods
    fn and_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn or_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    fn xor_scalar(
        self,
        other: Self::DType
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
}
Expand description

Boolean array operations with a scalar argument

Required Associated Types§

Required Methods§

source

fn and_scalar( self, other: Self::DType ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Construct a boolean and operation with the other value.

source

fn or_scalar( self, other: Self::DType ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Construct a boolean or operation with the other value.

source

fn xor_scalar( self, other: Self::DType ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>

Construct a boolean xor operation with the other value.

Object Safety§

This trait is not object safe.

Implementors§