pub struct StringPattern<M> { /* private fields */ }
Implementations§
Source§impl<M> StringPattern<M>where
M: NegatePattern,
impl<M> StringPattern<M>where
M: NegatePattern,
pub fn not(self) -> StringPattern<M::Output>
Source§impl<M> StringPattern<M>
impl<M> StringPattern<M>
pub fn repeat<'m>(self, count: impl RepeatCount) -> StringPattern<Repeat<'m, M>>
pub fn optional<'m>(self) -> StringPattern<Repeat<'m, M>>
Source§impl<'m, M> StringPattern<Repeat<'m, M>>
impl<'m, M> StringPattern<Repeat<'m, M>>
Source§impl<M: IntoMatchString> StringPattern<M>
impl<M: IntoMatchString> StringPattern<M>
pub fn matcher<'m>(self) -> StringMatcher<M::Matcher<'m>>
Trait Implementations§
Source§impl<'m, A, B> Add<StringPattern<B>> for StringPattern<A>
impl<'m, A, B> Add<StringPattern<B>> for StringPattern<A>
Source§type Output = StringPattern<MatchPlus<A, B>>
type Output = StringPattern<MatchPlus<A, B>>
The resulting type after applying the
+
operator.Source§impl<M1, M2> BitAnd<StringPattern<M2>> for StringPattern<M1>where
M1: IntersectPattern<M2>,
impl<M1, M2> BitAnd<StringPattern<M2>> for StringPattern<M1>where
M1: IntersectPattern<M2>,
Source§type Output = StringPattern<<M1 as IntersectPattern<M2>>::Output>
type Output = StringPattern<<M1 as IntersectPattern<M2>>::Output>
The resulting type after applying the
&
operator.Source§impl<A, B> BitOr<StringPattern<B>> for StringPattern<A>
impl<A, B> BitOr<StringPattern<B>> for StringPattern<A>
Source§type Output = StringPattern<MatchOr<A, B>>
type Output = StringPattern<MatchOr<A, B>>
The resulting type after applying the
|
operator.Source§impl<M: Clone> Clone for StringPattern<M>
impl<M: Clone> Clone for StringPattern<M>
Source§fn clone(&self) -> StringPattern<M>
fn clone(&self) -> StringPattern<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'m, M: MatchString<'m>> Debug for StringPattern<M>
impl<'m, M: MatchString<'m>> Debug for StringPattern<M>
Source§impl<M: IntoMatchString> From<M> for StringPattern<M>
impl<M: IntoMatchString> From<M> for StringPattern<M>
Source§impl<M> Mul<RangeFull> for StringPattern<M>
impl<M> Mul<RangeFull> for StringPattern<M>
Source§impl<M> Mul<RangeInclusive<u32>> for StringPattern<M>
impl<M> Mul<RangeInclusive<u32>> for StringPattern<M>
Source§impl<M> Mul<RangeToInclusive<u32>> for StringPattern<M>
impl<M> Mul<RangeToInclusive<u32>> for StringPattern<M>
Source§impl<M> Mul<StringPattern<M>> for RangeFrom<u32>
impl<M> Mul<StringPattern<M>> for RangeFrom<u32>
Source§type Output = StringPattern<Repeat<'static, M>>
type Output = StringPattern<Repeat<'static, M>>
The resulting type after applying the
*
operator.Source§impl<M> Mul<StringPattern<M>> for RangeFull
impl<M> Mul<StringPattern<M>> for RangeFull
Source§type Output = StringPattern<Repeat<'static, M>>
type Output = StringPattern<Repeat<'static, M>>
The resulting type after applying the
*
operator.Source§impl<M> Mul<StringPattern<M>> for RangeInclusive<u32>
impl<M> Mul<StringPattern<M>> for RangeInclusive<u32>
Source§type Output = StringPattern<Repeat<'static, M>>
type Output = StringPattern<Repeat<'static, M>>
The resulting type after applying the
*
operator.Source§impl<M> Mul<StringPattern<M>> for RangeToInclusive<u32>
impl<M> Mul<StringPattern<M>> for RangeToInclusive<u32>
Source§type Output = StringPattern<Repeat<'static, M>>
type Output = StringPattern<Repeat<'static, M>>
The resulting type after applying the
*
operator.Source§impl<M> Mul<StringPattern<M>> for u32
impl<M> Mul<StringPattern<M>> for u32
Source§type Output = StringPattern<Repeat<'static, M>>
type Output = StringPattern<Repeat<'static, M>>
The resulting type after applying the
*
operator.Source§impl<M> Mul<u32> for StringPattern<M>
impl<M> Mul<u32> for StringPattern<M>
Auto Trait Implementations§
impl<M> Freeze for StringPattern<M>where
M: Freeze,
impl<M> RefUnwindSafe for StringPattern<M>where
M: RefUnwindSafe,
impl<M> Send for StringPattern<M>where
M: Send,
impl<M> Sync for StringPattern<M>where
M: Sync,
impl<M> Unpin for StringPattern<M>where
M: Unpin,
impl<M> UnwindSafe for StringPattern<M>where
M: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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