pub enum PhraseBody {
Setup(Vec<Fact>),
Actions(Vec<Trigger>),
}Variants§
Setup(Vec<Fact>)
Facts, for Givens (and Thens).
Actions(Vec<Trigger>)
Actions in order, for Whens: one for an expectation, any number in a story.
Trait Implementations§
Source§impl Clone for PhraseBody
impl Clone for PhraseBody
Source§fn clone(&self) -> PhraseBody
fn clone(&self) -> PhraseBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PhraseBody
impl RefUnwindSafe for PhraseBody
impl Send for PhraseBody
impl Sync for PhraseBody
impl Unpin for PhraseBody
impl UnsafeUnpin for PhraseBody
impl UnwindSafe for PhraseBody
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