pub struct BoundsBuilder<'a> { /* private fields */ }
Expand description
Build a set of string matching rules
Implementations§
source§impl<'a> BoundsBuilder<'a>
impl<'a> BoundsBuilder<'a>
pub fn new() -> Self
sourcepub fn as_vec(&self) -> Vec<StringBounds<'a>>
pub fn as_vec(&self) -> Vec<StringBounds<'a>>
Return a vector of StringBounds enum rules for use with filter_all_conditional()
sourcepub fn starts_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn starts_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add a “starts_with” rule with a positive flags in case-insensitive mode
sourcepub fn starts_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn starts_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add a “starts_with” rule with a positive flag in case-sensitive mode
sourcepub fn starting_with(
&mut self,
pattern: &'a str,
case_insensitive: bool
) -> Self
pub fn starting_with( &mut self, pattern: &'a str, case_insensitive: bool ) -> Self
Add a positive “starts_with” rule with a case-insensitive flag
sourcepub fn starting_with_ci(&mut self, pattern: &'a str) -> Self
pub fn starting_with_ci(&mut self, pattern: &'a str) -> Self
Add a positive “starts_with” rule in case-insensitive mode
sourcepub fn starting_with_cs(&mut self, pattern: &'a str) -> Self
pub fn starting_with_cs(&mut self, pattern: &'a str) -> Self
Add a positive “starts_with” rule in case-sensitive mode
sourcepub fn not_starting_with(
&mut self,
pattern: &'a str,
case_insensitive: bool
) -> Self
pub fn not_starting_with( &mut self, pattern: &'a str, case_insensitive: bool ) -> Self
Add a negative “starts_with” rule with a case-insensitive flag
sourcepub fn not_starting_with_ci(&mut self, pattern: &'a str) -> Self
pub fn not_starting_with_ci(&mut self, pattern: &'a str) -> Self
Add a negative “starts_with” rule in case-insensitive mode
sourcepub fn not_starting_with_cs(&mut self, pattern: &'a str) -> Self
pub fn not_starting_with_cs(&mut self, pattern: &'a str) -> Self
Add a negative “starts_with” rule in case-sensitive mode
sourcepub fn contains(
&mut self,
pattern: &'a str,
is_positive: bool,
case_insensitive: bool
) -> Self
pub fn contains( &mut self, pattern: &'a str, is_positive: bool, case_insensitive: bool ) -> Self
Add a “contains” rule with a positive flag in case-insensitive mode
sourcepub fn contains_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn contains_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add a “contains” rule with a positive flags in case-insensitive mode
sourcepub fn contains_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn contains_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add a “contains” rule with a positive flags in case-sensitive mode
sourcepub fn containing(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
pub fn containing(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
Add a positive “contains” rule with a case-insensitive flag
sourcepub fn containing_ci(&mut self, pattern: &'a str) -> Self
pub fn containing_ci(&mut self, pattern: &'a str) -> Self
Add a positive “contains” rule in case-insensitive mode
sourcepub fn containing_cs(&mut self, pattern: &'a str) -> Self
pub fn containing_cs(&mut self, pattern: &'a str) -> Self
Add a positive “contains” rule as true in case-sensitive mode
sourcepub fn not_containing(
&mut self,
pattern: &'a str,
case_insensitive: bool
) -> Self
pub fn not_containing( &mut self, pattern: &'a str, case_insensitive: bool ) -> Self
Add a negative “contains” rule with a case-insensitive flag
sourcepub fn not_containing_ci(&mut self, pattern: &'a str) -> Self
pub fn not_containing_ci(&mut self, pattern: &'a str) -> Self
Add a negative “contains” rule in case-insensitive mode
sourcepub fn not_containing_cs(&mut self, pattern: &'a str) -> Self
pub fn not_containing_cs(&mut self, pattern: &'a str) -> Self
Add a negative “contains” rule in case-sensitive mode
sourcepub fn ends_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn ends_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add an “ends_with” rule with a positive flag in case-insensitive mode
sourcepub fn ends_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn ends_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add an “ends_with” rule with a positive flag in case-sensitive mode
sourcepub fn ending_with(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
pub fn ending_with(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
Add a positive “ends_with” rule with a case-insensitive flag
sourcepub fn ending_with_ci(&mut self, pattern: &'a str) -> Self
pub fn ending_with_ci(&mut self, pattern: &'a str) -> Self
Add a positive “ends_with” rule in case-insensitive mode
sourcepub fn ending_with_cs(&mut self, pattern: &'a str) -> Self
pub fn ending_with_cs(&mut self, pattern: &'a str) -> Self
Add a positive “ends_with” rule in case-sensitive mode
sourcepub fn not_ending_with(
&mut self,
pattern: &'a str,
case_insensitive: bool
) -> Self
pub fn not_ending_with( &mut self, pattern: &'a str, case_insensitive: bool ) -> Self
Add a negative “ends_with” rule with a case-insensitive flag
sourcepub fn not_ending_with_ci(&mut self, pattern: &'a str) -> Self
pub fn not_ending_with_ci(&mut self, pattern: &'a str) -> Self
Add a negative “ends_with” rule in case-insensitive mode
sourcepub fn not_ending_with_cs(&mut self, pattern: &'a str) -> Self
pub fn not_ending_with_cs(&mut self, pattern: &'a str) -> Self
Add a negative “ends_with” in case-sensitive mode
sourcepub fn matches_whole(
&mut self,
pattern: &'a str,
is_positive: bool,
case_insensitive: bool
) -> Self
pub fn matches_whole( &mut self, pattern: &'a str, is_positive: bool, case_insensitive: bool ) -> Self
Add an “whole_match” rule with a positive and case-insensitive flags
sourcepub fn matches_whole_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn matches_whole_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add an “whole_match” rule with a positive flag in case-sensitive mode
sourcepub fn matches_whole_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn matches_whole_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
Add an “whole_match” rule with a positive flag in case-insensitive mode
pub fn is(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
pub fn is_ci(&mut self, pattern: &'a str) -> Self
pub fn is_not(&mut self, pattern: &'a str, case_insensitive: bool) -> Self
pub fn is_not_ci(&mut self, pattern: &'a str) -> Self
pub fn is_not_cs(&mut self, pattern: &'a str) -> Self
Trait Implementations§
source§impl<'a> Clone for BoundsBuilder<'a>
impl<'a> Clone for BoundsBuilder<'a>
source§fn clone(&self) -> BoundsBuilder<'a>
fn clone(&self) -> BoundsBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more