pub struct WordDef {
pub name: String,
pub effect: Option<Effect>,
pub body: Vec<Statement>,
pub source: Option<SourceLocation>,
}Fields§
§name: String§effect: Option<Effect>Optional stack effect declaration Example: ( ..a Int – ..a Bool )
body: Vec<Statement>§source: Option<SourceLocation>Source location for error reporting (collision detection)
Trait Implementations§
impl StructuralPartialEq for WordDef
Auto Trait Implementations§
impl Freeze for WordDef
impl RefUnwindSafe for WordDef
impl Send for WordDef
impl Sync for WordDef
impl Unpin for WordDef
impl UnwindSafe for WordDef
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