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§
source§impl<'de> Deserialize<'de> for StepKind
impl<'de> Deserialize<'de> for StepKind
source§fn 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
source§impl PartialEq<StepKind> for StepKind
impl PartialEq<StepKind> for StepKind
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§
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.