pub trait SimpleFilterAny<'a, T> {
// Required method
fn filter_any_conditional(
&'a self,
pattern_sets: &[StringBounds<'_>],
) -> Vec<T>;
// Provided method
fn filter_any_rules(&'a self, rules: &BoundsBuilder<'_>) -> Vec<T> { ... }
}
Expand description
Test multiple patterns and return a filtered vector of string slices by any of the pattern rules
Required Methods§
Sourcefn filter_any_conditional(&'a self, pattern_sets: &[StringBounds<'_>]) -> Vec<T>
fn filter_any_conditional(&'a self, pattern_sets: &[StringBounds<'_>]) -> Vec<T>
test for multiple conditions. All other trait methods are derived from this
Provided Methods§
fn filter_any_rules(&'a self, rules: &BoundsBuilder<'_>) -> Vec<T>
Implementations on Foreign Types§
Source§impl<'a> SimpleFilterAny<'a, &'a str> for [&str]
Filter strings by one or more StringBounds rules
impl<'a> SimpleFilterAny<'a, &'a str> for [&str]
Filter strings by one or more StringBounds rules
fn filter_any_conditional( &'a self, pattern_sets: &[StringBounds<'_>], ) -> Vec<&'a str>
Source§impl<'a> SimpleFilterAny<'a, String> for [String]
Variant implementation for owned strings
impl<'a> SimpleFilterAny<'a, String> for [String]
Variant implementation for owned strings