simple_string_patterns::simple_match

Trait SimpleFilterAll

Source
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§