pub trait SimpleFilterAll<'a, T> {
    // Required method
    fn filter_all_conditional(
        &'a self,
        pattern_sets: &[StringBounds<'_>]
    ) -> Vec<T>;

    // Provided method
    fn filter_all_rules(&'a self, rules: &BoundsBuilder<'_>) -> Vec<T> { ... }
}
Expand description

Test multiple patterns and return a filtered vector of string slices by all pattern rules

Required Methods§

source

fn filter_all_conditional(&'a self, pattern_sets: &[StringBounds<'_>]) -> Vec<T>

test for multiple conditions. All other trait methods are derived from this

Provided Methods§

source

fn filter_all_rules(&'a self, rules: &BoundsBuilder<'_>) -> Vec<T>

Implementations on Foreign Types§

source§

impl<'a> SimpleFilterAll<'a, &'a str> for [&str]

Filter strings by one or more StringBounds rules

source§

fn filter_all_conditional( &'a self, pattern_sets: &[StringBounds<'_>] ) -> Vec<&'a str>

source§

impl<'a> SimpleFilterAll<'a, String> for [String]

Variant implementation for owned strings

source§

fn filter_all_conditional( &'a self, pattern_sets: &[StringBounds<'_>] ) -> Vec<String>

Implementors§