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§
Sourcefn apply_axis<U, F>(&self, axis: Axis, f: F) -> Vec<U>
fn apply_axis<U, F>(&self, axis: Axis, f: F) -> Vec<U>
Generic helper: apply f
to every column/row and collect its
result in a Vec
.
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
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.