Trait NDArrayBooleanScalar

Source
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.

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§