Enum cucumber_expressions::Alternative
source · [−]pub enum Alternative<Input> {
Optional(Optional<Input>),
Text(Input),
}
Expand description
alternative
defined in the grammar spec.
See parse::alternative()
for the detailed grammar and examples.
Variants
Optional(Optional<Input>)
optional
expression.
Text(Input)
Text.
Trait Implementations
sourceimpl<Input: Clone> Clone for Alternative<Input>
impl<Input: Clone> Clone for Alternative<Input>
sourcefn clone(&self) -> Alternative<Input>
fn clone(&self) -> Alternative<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 Alternative<Input>
impl<Input: Debug> Debug for Alternative<Input>
sourceimpl<Input> IntoRegexCharIter<Input> for Alternative<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
impl<Input> IntoRegexCharIter<Input> for Alternative<Input> where
Input: Display + InputIter,
<Input as InputIter>::Item: AsChar,
sourceimpl<Input: PartialEq> PartialEq<Alternative<Input>> for Alternative<Input>
impl<Input: PartialEq> PartialEq<Alternative<Input>> for Alternative<Input>
sourcefn eq(&self, other: &Alternative<Input>) -> bool
fn eq(&self, other: &Alternative<Input>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Alternative<Input>) -> bool
fn ne(&self, other: &Alternative<Input>) -> bool
This method tests for !=
.
impl<Input: Copy> Copy for Alternative<Input>
impl<Input: Eq> Eq for Alternative<Input>
impl<Input> StructuralEq for Alternative<Input>
impl<Input> StructuralPartialEq for Alternative<Input>
Auto Trait Implementations
impl<Input> RefUnwindSafe for Alternative<Input> where
Input: RefUnwindSafe,
impl<Input> Send for Alternative<Input> where
Input: Send,
impl<Input> Sync for Alternative<Input> where
Input: Sync,
impl<Input> Unpin for Alternative<Input> where
Input: Unpin,
impl<Input> UnwindSafe for Alternative<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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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