pub trait NDArrayBooleanScalar: NDArray + Sized {
    // Provided methods
    fn and_scalar(
        self,
        other: Self::DType
    ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error> { ... }
    fn or_scalar(
        self,
        other: Self::DType
    ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error> { ... }
    fn xor_scalar(
        self,
        other: Self::DType
    ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error> { ... }
}
Expand description

Boolean array operations with a scalar argument

Provided Methods§

source

fn and_scalar( self, other: Self::DType ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error>

Construct a boolean and operation with the other value.

source

fn or_scalar( self, other: Self::DType ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error>

Construct a boolean or operation with the other value.

source

fn xor_scalar( self, other: Self::DType ) -> Result<ArrayOp<ArrayBooleanScalar<Self, Self::DType>>, Error>

Construct a boolean xor operation with the other value.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T: CDatatype, A: NDArray<DType = T>> NDArrayBooleanScalar for A