Trait BoolOps

Source
pub trait BoolOps {
    // Required methods
    fn apply_axis<U, F>(&self, axis: Axis, f: F) -> Vec<U>
       where F: FnMut(&[bool]) -> U;
    fn any_vertical(&self) -> Vec<bool>;
    fn any_horizontal(&self) -> Vec<bool>;
    fn all_vertical(&self) -> Vec<bool>;
    fn all_horizontal(&self) -> Vec<bool>;
    fn count_vertical(&self) -> Vec<usize>;
    fn count_horizontal(&self) -> Vec<usize>;
    fn any(&self) -> bool;
    fn all(&self) -> bool;
    fn count(&self) -> usize;
}
Expand description

Boolean operations on Matrix<bool>

Required Methods§

Source

fn apply_axis<U, F>(&self, axis: Axis, f: F) -> Vec<U>
where F: FnMut(&[bool]) -> U,

Generic helper: apply f to every column/row and collect its result in a Vec.

Source

fn any_vertical(&self) -> Vec<bool>

Source

fn any_horizontal(&self) -> Vec<bool>

Source

fn all_vertical(&self) -> Vec<bool>

Source

fn all_horizontal(&self) -> Vec<bool>

Source

fn count_vertical(&self) -> Vec<usize>

Source

fn count_horizontal(&self) -> Vec<usize>

Source

fn any(&self) -> bool

Source

fn all(&self) -> bool

Source

fn count(&self) -> usize

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§