pub struct Phrase {
pub id: PhraseId,
pub name: String,
pub key: String,
pub say: Option<String>,
pub span: Span,
pub body: PhraseBody,
}Expand description
A step of your own, built from others: a higher-level way to say a setup or a sequence of
actions, like “the user draws a triangle” for PEN, three clicks on the canvas and DONE.
Specs read better and stay put when the details change; docs say it with say.
Fields§
§id: PhraseId§name: String§key: String§say: Option<String>How docs say it: an instruction for actions (“press NEW, draw three shapes on the canvas, then press SAVE”), a clause for a setup (“a drawing saved”).
span: Span§body: PhraseBodyTrait Implementations§
Auto Trait Implementations§
impl Freeze for Phrase
impl RefUnwindSafe for Phrase
impl Send for Phrase
impl Sync for Phrase
impl Unpin for Phrase
impl UnsafeUnpin for Phrase
impl UnwindSafe for Phrase
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