pub enum Stmt {
Show 14 variants
None,
Value(Value),
Word(Symbol),
List(Vec<Stmt>),
Map(Vec<(Symbol, Stmt)>),
Call(Box<Stmt>, Vec<Stmt>),
Return(Box<Stmt>),
If(Vec<(Stmt, Vec<Stmt>)>),
For(Option<Symbol>, Symbol, Box<Stmt>, Vec<Stmt>),
While(Box<Stmt>, Vec<Stmt>),
Assign(Symbol, Box<Stmt>, bool),
Tag(Tag),
Fn(Vec<Symbol>, Vec<Stmt>),
Args(Vec<(Symbol, Stmt)>),
}
Expand description
Stmt is an AST node.
Variants§
None
Value(Value)
Word(Symbol)
List(Vec<Stmt>)
Map(Vec<(Symbol, Stmt)>)
Call(Box<Stmt>, Vec<Stmt>)
Return(Box<Stmt>)
If(Vec<(Stmt, Vec<Stmt>)>)
For(Option<Symbol>, Symbol, Box<Stmt>, Vec<Stmt>)
While(Box<Stmt>, Vec<Stmt>)
Assign(Symbol, Box<Stmt>, bool)
Tag(Tag)
Fn(Vec<Symbol>, Vec<Stmt>)
Args(Vec<(Symbol, Stmt)>)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Stmt
Auto Trait Implementations§
impl Freeze for Stmt
impl !RefUnwindSafe for Stmt
impl !Send for Stmt
impl !Sync for Stmt
impl Unpin for Stmt
impl !UnwindSafe for Stmt
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)