pub struct PatternParseEvBuilder<'a, S: State = Empty> { /* private fields */ }
Available on (crate features
syntax-glob
or syntax-ev
or syntax-regex
) and crate feature syntax-ev
only.Expand description
Use builder syntax to set the inputs and finish with call()
.
Implementations§
Source§impl<'a, S: State> PatternParseEvBuilder<'a, S>
impl<'a, S: State> PatternParseEvBuilder<'a, S>
Sourcepub fn call(self) -> Pattern<'a, str>where
S: IsComplete,
pub fn call(self) -> Pattern<'a, str>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn postmodifier_en(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierEn<S>>where
S::PostmodifierEn: IsUnset,
pub fn postmodifier_en(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierEn<S>>where
S::PostmodifierEn: IsUnset,
Sourcepub fn maybe_postmodifier_en(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierEn<S>>where
S::PostmodifierEn: IsUnset,
pub fn maybe_postmodifier_en(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierEn<S>>where
S::PostmodifierEn: IsUnset,
Sourcepub fn postmodifier_py(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierPy<S>>where
S::PostmodifierPy: IsUnset,
pub fn postmodifier_py(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierPy<S>>where
S::PostmodifierPy: IsUnset,
Sourcepub fn maybe_postmodifier_py(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierPy<S>>where
S::PostmodifierPy: IsUnset,
pub fn maybe_postmodifier_py(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierPy<S>>where
S::PostmodifierPy: IsUnset,
Sourcepub fn postmodifier_rm(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierRm<S>>where
S::PostmodifierRm: IsUnset,
pub fn postmodifier_rm(
self,
value: bool,
) -> PatternParseEvBuilder<'a, SetPostmodifierRm<S>>where
S::PostmodifierRm: IsUnset,
Sourcepub fn maybe_postmodifier_rm(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierRm<S>>where
S::PostmodifierRm: IsUnset,
pub fn maybe_postmodifier_rm(
self,
value: Option<bool>,
) -> PatternParseEvBuilder<'a, SetPostmodifierRm<S>>where
S::PostmodifierRm: IsUnset,
Auto Trait Implementations§
impl<'a, S> Freeze for PatternParseEvBuilder<'a, S>
impl<'a, S> RefUnwindSafe for PatternParseEvBuilder<'a, S>
impl<'a, S> Send for PatternParseEvBuilder<'a, S>
impl<'a, S> Sync for PatternParseEvBuilder<'a, S>
impl<'a, S> Unpin for PatternParseEvBuilder<'a, S>
impl<'a, S> UnwindSafe for PatternParseEvBuilder<'a, 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