Trait ha_ndarray::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§
sourcefn and_scalar(
self,
other: Self::DType
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn and_scalar( self, other: Self::DType ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct a boolean and operation with the other
value.
Object Safety§
This trait is not object safe.