Struct cucumber_expressions::Parameter
source · 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<Input> IntoRegexCharIter<Input> for Parameter<Input>where
Input: Clone + Display + InputIter,
<Input as InputIter>::Item: AsChar,
Available on crate feature into-regex
only.
impl<Input> IntoRegexCharIter<Input> for Parameter<Input>where Input: Clone + Display + InputIter, <Input as InputIter>::Item: AsChar,
Available on crate feature
into-regex
only.source§impl<Input: PartialEq> PartialEq<Parameter<Input>> for Parameter<Input>
impl<Input: PartialEq> PartialEq<Parameter<Input>> for Parameter<Input>
impl<Input: Copy> Copy for Parameter<Input>
impl<Input: Eq> Eq for Parameter<Input>
impl<Input> StructuralEq for Parameter<Input>
impl<Input> StructuralPartialEq for Parameter<Input>
Auto Trait Implementations§
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