pub struct ParseGlobPathBuilder<'f1, S: State = Empty> { /* private fields */ }
Available on (crate features
syntax-glob
or syntax-ev
or syntax-regex
) and crate feature syntax-glob
only.Expand description
Use builder syntax to set the inputs and finish with call()
.
Implementations§
Source§impl<'f1, S: State> ParseGlobPathBuilder<'f1, S>
impl<'f1, S: State> ParseGlobPathBuilder<'f1, S>
Sourcepub fn call(self, pattern: &'f1 str) -> Hirwhere
S: IsComplete,
pub fn call(self, pattern: &'f1 str) -> Hirwhere
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn pattern_separator(
self,
value: PathSeparator,
) -> ParseGlobPathBuilder<'f1, SetPatternSeparator<S>>where
S::PatternSeparator: IsUnset,
pub fn pattern_separator(
self,
value: PathSeparator,
) -> ParseGlobPathBuilder<'f1, SetPatternSeparator<S>>where
S::PatternSeparator: IsUnset,
Optional (Some / Option setters).
The separator used in the pattern. Can be different from the one used in the haystacks to be matched.
Defaults to the same as separator
. You may want to use PathSeparator::Any
instead.
Sourcepub fn maybe_pattern_separator(
self,
value: Option<PathSeparator>,
) -> ParseGlobPathBuilder<'f1, SetPatternSeparator<S>>where
S::PatternSeparator: IsUnset,
pub fn maybe_pattern_separator(
self,
value: Option<PathSeparator>,
) -> ParseGlobPathBuilder<'f1, SetPatternSeparator<S>>where
S::PatternSeparator: IsUnset,
Optional (Some / Option setters).
The separator used in the pattern. Can be different from the one used in the haystacks to be matched.
Defaults to the same as separator
. You may want to use PathSeparator::Any
instead.
Sourcepub fn separator(
self,
value: PathSeparator,
) -> ParseGlobPathBuilder<'f1, SetSeparator<S>>where
S::Separator: IsUnset,
pub fn separator(
self,
value: PathSeparator,
) -> ParseGlobPathBuilder<'f1, SetSeparator<S>>where
S::Separator: IsUnset,
Required.
The path separator used in the haystacks to be matched.
Only have effect on ?
and *
.
Sourcepub fn surrounding_wildcard_as_anchor(
self,
value: bool,
) -> ParseGlobPathBuilder<'f1, SetSurroundingWildcardAsAnchor<S>>where
S::SurroundingWildcardAsAnchor: IsUnset,
pub fn surrounding_wildcard_as_anchor(
self,
value: bool,
) -> ParseGlobPathBuilder<'f1, SetSurroundingWildcardAsAnchor<S>>where
S::SurroundingWildcardAsAnchor: IsUnset,
Sourcepub fn maybe_surrounding_wildcard_as_anchor(
self,
value: Option<bool>,
) -> ParseGlobPathBuilder<'f1, SetSurroundingWildcardAsAnchor<S>>where
S::SurroundingWildcardAsAnchor: IsUnset,
pub fn maybe_surrounding_wildcard_as_anchor(
self,
value: Option<bool>,
) -> ParseGlobPathBuilder<'f1, SetSurroundingWildcardAsAnchor<S>>where
S::SurroundingWildcardAsAnchor: IsUnset,
Sourcepub fn ext(self, value: GlobExtConfig) -> ParseGlobPathBuilder<'f1, SetExt<S>>where
S::Ext: IsUnset,
pub fn ext(self, value: GlobExtConfig) -> ParseGlobPathBuilder<'f1, SetExt<S>>where
S::Ext: IsUnset,
Sourcepub fn maybe_ext(
self,
value: Option<GlobExtConfig>,
) -> ParseGlobPathBuilder<'f1, SetExt<S>>where
S::Ext: IsUnset,
pub fn maybe_ext(
self,
value: Option<GlobExtConfig>,
) -> ParseGlobPathBuilder<'f1, SetExt<S>>where
S::Ext: IsUnset,
Auto Trait Implementations§
impl<'f1, S> Freeze for ParseGlobPathBuilder<'f1, S>
impl<'f1, S> RefUnwindSafe for ParseGlobPathBuilder<'f1, S>
impl<'f1, S> Send for ParseGlobPathBuilder<'f1, S>
impl<'f1, S> Sync for ParseGlobPathBuilder<'f1, S>
impl<'f1, S> Unpin for ParseGlobPathBuilder<'f1, S>
impl<'f1, S> UnwindSafe for ParseGlobPathBuilder<'f1, S>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more