Trait FilterRow

Source
pub trait FilterRow {
    // Required method
    fn filter_row(
        &self,
        typ: LineType,
        irow: usize,
        row: &[(Cow<'_, str>, [usize; 2])],
    ) -> bool;

    // Provided method
    fn need_args(&self) -> bool { ... }
}
Expand description

Filter columns of a table to print it only partially.

Required Methods§

Source

fn filter_row( &self, typ: LineType, irow: usize, row: &[(Cow<'_, str>, [usize; 2])], ) -> bool

Filter rows of a table to print it only partially.

Provided Methods§

Source

fn need_args(&self) -> bool

Determine is arguments needed for the filter or it can give answer even without arguments. Useful for optimization.

Trait Implementations§

Source§

impl Default for &'static dyn FilterRow

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Implementors§

Source§

impl FilterRow for All

Source§

impl FilterRow for None

Source§

impl<F: Fn(LineType, usize, &[(Cow<'_, str>, [usize; 2])]) -> bool> FilterRow for F