pub enum SingleExpression<Input> {
Alternation(Alternation<Input>),
Optional(Optional<Input>),
Parameter(Parameter<Input>),
Text(Input),
Whitespaces(Input),
}
Expand description
single-expression
defined in the grammar spec, representing a single
entry of an Expression
.
See parse::single_expression()
for the detailed grammar and examples.
Variants
Alternation(Alternation<Input>)
alternation
expression.
Optional(Optional<Input>)
optional
expression.
Parameter(Parameter<Input>)
parameter
expression.
Text(Input)
text-without-whitespace+
expression.
Whitespaces(Input)
whitespace+
expression.
Trait Implementations
sourceimpl<Input: Clone> Clone for SingleExpression<Input>
impl<Input: Clone> Clone for SingleExpression<Input>
sourcefn clone(&self) -> SingleExpression<Input>
fn clone(&self) -> SingleExpression<Input>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Input: Debug> Debug for SingleExpression<Input>
impl<Input: Debug> Debug for SingleExpression<Input>
sourceimpl<Input> IntoRegexCharIter<Input> for SingleExpression<Input> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
impl<Input> IntoRegexCharIter<Input> for SingleExpression<Input> where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
type Iter = Either<<Alternation<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Optional<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Parameter<Input> as IntoRegexCharIter<Input>>::Iter, Map<EscapeForRegex<Map<<Input as InputIter>::IterElem, fn(_: <Input as InputIter>::Item) -> char>>, fn(_: char) -> Result<char, ParameterError<Input>>>>>>
type Iter = Either<<Alternation<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Optional<Input> as IntoRegexCharIter<Input>>::Iter, Either<<Parameter<Input> as IntoRegexCharIter<Input>>::Iter, Map<EscapeForRegex<Map<<Input as InputIter>::IterElem, fn(_: <Input as InputIter>::Item) -> char>>, fn(_: char) -> Result<char, ParameterError<Input>>>>>>
Type of an Iterator
performing the expansion.
sourceimpl<Input: PartialEq> PartialEq<SingleExpression<Input>> for SingleExpression<Input>
impl<Input: PartialEq> PartialEq<SingleExpression<Input>> for SingleExpression<Input>
sourcefn eq(&self, other: &SingleExpression<Input>) -> bool
fn eq(&self, other: &SingleExpression<Input>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SingleExpression<Input>) -> bool
fn ne(&self, other: &SingleExpression<Input>) -> bool
This method tests for !=
.
impl<Input: Eq> Eq for SingleExpression<Input>
impl<Input> StructuralEq for SingleExpression<Input>
impl<Input> StructuralPartialEq for SingleExpression<Input>
Auto Trait Implementations
impl<Input> RefUnwindSafe for SingleExpression<Input> where
Input: RefUnwindSafe,
impl<Input> Send for SingleExpression<Input> where
Input: Send,
impl<Input> Sync for SingleExpression<Input> where
Input: Sync,
impl<Input> Unpin for SingleExpression<Input> where
Input: Unpin,
impl<Input> UnwindSafe for SingleExpression<Input> where
Input: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more