pub enum StepKind {
Given,
When,
Then,
}
Expand description
The kind of scenario step we have: given, when, or then.
This needs to be extended if the Subplot language gets extended with other kinds of steps. However, note that the scenario parser will hide aliases, such as “and” to mean the same kind as the previous step.
Variants
Given
A “given some precondition” step.
When
A “when something happens” step.
Then
A “then some condition” step.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for StepKind
impl Eq for StepKind
impl StructuralEq for StepKind
impl StructuralPartialEq for StepKind
Auto Trait Implementations
impl RefUnwindSafe for StepKind
impl Send for StepKind
impl Sync for StepKind
impl Unpin for StepKind
impl UnwindSafe for StepKind
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.