Type Alias BoolMatrix

Source
pub type BoolMatrix = Matrix<bool>;

Aliased Type§

struct BoolMatrix { /* private fields */ }

Trait Implementations§

Source§

impl BoolOps for BoolMatrix

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