Struct relay_pattern::PatternBuilder
source · pub struct PatternBuilder<'a> { /* private fields */ }
Expand description
A builder for a Pattern
.
Implementations§
source§impl<'a> PatternBuilder<'a>
impl<'a> PatternBuilder<'a>
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 max_complexity(&mut self, max_complexity: u64) -> &mut Self
pub fn max_complexity(&mut self, max_complexity: u64) -> &mut Self
Sets the max complexity for this pattern.
Attempting to build a pattern with a complexity higher than the maximum specified here will fail.
Defaults to u64::MAX
.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PatternBuilder<'a>
impl<'a> RefUnwindSafe for PatternBuilder<'a>
impl<'a> Send for PatternBuilder<'a>
impl<'a> Sync for PatternBuilder<'a>
impl<'a> Unpin for PatternBuilder<'a>
impl<'a> UnwindSafe for PatternBuilder<'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