Trait NDArrayCompareScalar

Source
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>;
    fn ge_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>;
    fn le_scalar(
        self,
        other: Self::DType,
    ) -> Result<Array<u8, Self::Output, Self::Platform>, Error>;
    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§

Source

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

Construct an equality comparison with the other value.

Source

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

Construct a greater-than comparison with the other value.

Source

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.

Source

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

Construct a less-than comparison with the other value.

Source

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

Construct an equal-or-less-than comparison with the other value.

Source

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

Construct an not-equal comparison 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§