Trait NDArrayReduceBoolean

Source
pub trait NDArrayReduceBoolean: NDArrayRead {
    // Required methods
    fn all(self) -> Result<bool, Error>;
    fn any(self) -> Result<bool, Error>;
}
Expand description

Boolean array reduce operations

Required Methods§

Source

fn all(self) -> Result<bool, Error>

Return true if this array contains only non-zero elements.

Source

fn any(self) -> Result<bool, Error>

Return true if this array contains any non-zero elements.

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§