pub trait NDArrayCompareScalar: NDArray + Sized {
type Output: Access<u8>;
// Required methods
fn eq_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
fn gt_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
where Self::DType: Real;
fn ge_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
where Self::DType: Real;
fn lt_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
where Self::DType: Real;
fn le_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
where Self::DType: Real;
fn ne_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
}Expand description
Array-scalar comparison operations
Required Associated Types§
Required Methods§
Sourcefn eq_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn eq_scalar( self, other: Self::DType, ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct an equality comparison with the other value.
Sourcefn gt_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn gt_scalar( self, other: Self::DType, ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct a greater-than comparison with the other value.
Sourcefn ge_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn ge_scalar( self, other: Self::DType, ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct an equal-or-greater-than comparison with the other value.
Sourcefn lt_scalar(
self,
other: Self::DType,
) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
fn lt_scalar( self, other: Self::DType, ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>
Construct a less-than comparison with the other value.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".