Struct relay_pattern::PatternsBuilder
source · pub struct PatternsBuilder { /* private fields */ }
Expand description
A builder for a collection of Patterns
.
Implementations§
source§impl PatternsBuilder
impl PatternsBuilder
sourcepub fn case_insensitive(&mut self, enabled: bool) -> &mut Self
pub fn case_insensitive(&mut self, enabled: bool) -> &mut Self
If enabled matches the pattern case insensitive.
This is disabled by default.
sourcepub fn patterns(&mut self) -> PatternsBuilderConfigured
pub fn patterns(&mut self) -> PatternsBuilderConfigured
Returns a PatternsBuilderConfigured
builder which allows adding patterns.
sourcepub fn add(&mut self, pattern: &str) -> Result<PatternsBuilderConfigured, Error>
pub fn add(&mut self, pattern: &str) -> Result<PatternsBuilderConfigured, Error>
Adds a pattern to the builder and returns the resulting PatternsBuilderConfigured
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatternsBuilder
impl RefUnwindSafe for PatternsBuilder
impl Send for PatternsBuilder
impl Sync for PatternsBuilder
impl Unpin for PatternsBuilder
impl UnwindSafe for PatternsBuilder
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