Struct relay_common::glob2::GlobBuilder
source · pub struct GlobBuilder<'g> { /* private fields */ }
Expand description
GlobBuilder
provides the posibility to fine tune the final Glob
, mainly what capture
groups will be enabled in the underlying regex.
Implementations§
source§impl<'g> GlobBuilder<'g>
impl<'g> GlobBuilder<'g>
sourcepub fn new(value: &'g str) -> Self
pub fn new(value: &'g str) -> Self
Create a new builder with all the captures enabled by default.
sourcepub fn capture_star(self, enable: bool) -> Self
pub fn capture_star(self, enable: bool) -> Self
Enable capture groups for *
in the pattern.
sourcepub fn capture_double_star(self, enable: bool) -> Self
pub fn capture_double_star(self, enable: bool) -> Self
Enable capture groups for **
in the pattern.
sourcepub fn capture_question_mark(self, enable: bool) -> Self
pub fn capture_question_mark(self, enable: bool) -> Self
Enable capture groups for ?
in the pattern.
Trait Implementations§
Auto Trait Implementations§
impl<'g> Freeze for GlobBuilder<'g>
impl<'g> RefUnwindSafe for GlobBuilder<'g>
impl<'g> Send for GlobBuilder<'g>
impl<'g> Sync for GlobBuilder<'g>
impl<'g> Unpin for GlobBuilder<'g>
impl<'g> UnwindSafe for GlobBuilder<'g>
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