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
pub fn as_vec(&self) -> Vec<StringBounds<'a>>
pub fn starts_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn starts_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn contains( &mut self, pattern: &'a str, is_positive: bool, case_insensitive: bool ) -> Self
pub fn contains_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn contains_cs(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn ends_with_ci(&mut self, pattern: &'a str, is_positive: bool) -> Self
pub fn ends_with_cs(&mut self, pattern: &'a str, is_positive: bool) -> 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>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for BoundsBuilder<'a>
impl<'a> Send for BoundsBuilder<'a>
impl<'a> Sync for BoundsBuilder<'a>
impl<'a> Unpin for BoundsBuilder<'a>
impl<'a> UnwindSafe for BoundsBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more