pub struct Parameter<Input> {
pub input: Input,
pub id: usize,
}
Expand description
parameter
defined in the grammar spec, allowing to match some special
Input
described by a Parameter
name.
See parse::parameter()
for the detailed grammar and examples.
Fields§
§input: Input
Inner Input
.
id: usize
Unique ID of this Parameter
in the parsed Expression
.
Trait Implementations§
Source§impl<I> IntoRegexCharIter<I> for Parameter<I>
Available on crate feature into-regex
only.
impl<I> IntoRegexCharIter<I> for Parameter<I>
Available on crate feature
into-regex
only.impl<Input: Copy> Copy for Parameter<Input>
impl<Input: Eq> Eq for Parameter<Input>
impl<Input> StructuralPartialEq for Parameter<Input>
Auto Trait Implementations§
impl<Input> Freeze for Parameter<Input>where
Input: Freeze,
impl<Input> RefUnwindSafe for Parameter<Input>where
Input: RefUnwindSafe,
impl<Input> Send for Parameter<Input>where
Input: Send,
impl<Input> Sync for Parameter<Input>where
Input: Sync,
impl<Input> Unpin for Parameter<Input>where
Input: Unpin,
impl<Input> UnwindSafe for Parameter<Input>where
Input: 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