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
sourceimpl<Input> IntoRegexCharIter<Input> for Optional<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
impl<Input> IntoRegexCharIter<Input> for Optional<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
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
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