Struct cucumber_expressions::Optional
source · pub struct Optional<Input>(pub Input);
Expand description
optional
defined in the grammar spec, allowing to match an optional
Input
.
See parse::optional()
for the detailed grammar and examples.
Tuple Fields§
§0: Input
Trait Implementations§
source§impl<Input> IntoRegexCharIter<Input> for Optional<Input>where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
Available on crate feature into-regex
only.
impl<Input> IntoRegexCharIter<Input> for Optional<Input>where Input: Display + InputIter, <Input as InputIter>::Item: AsChar,
Available on crate feature
into-regex
only.source§impl<Input: PartialEq> PartialEq<Optional<Input>> for Optional<Input>
impl<Input: PartialEq> PartialEq<Optional<Input>> for Optional<Input>
impl<Input: Copy> Copy for Optional<Input>
impl<Input: Eq> Eq for Optional<Input>
impl<Input> StructuralEq for Optional<Input>
impl<Input> StructuralPartialEq for Optional<Input>
Auto Trait Implementations§
impl<Input> RefUnwindSafe for Optional<Input>where Input: RefUnwindSafe,
impl<Input> Send for Optional<Input>where Input: Send,
impl<Input> Sync for Optional<Input>where Input: Sync,
impl<Input> Unpin for Optional<Input>where Input: Unpin,
impl<Input> UnwindSafe for Optional<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