pub enum TreeItem {
Show 15 variants
String(String),
Comment,
Exp(Expr),
Block {
command: String,
params: Vec<Expr>,
block: Block,
},
If {
cond: Expr,
yes: Block,
no: Option<Block>,
},
For {
k: String,
v: String,
p: Expr,
b: Block,
},
Define(String, Vec<String>, Block),
Global(String, Vec<String>, Block),
Let(Vec<(String, Expr)>),
Export(Vec<(String, Expr)>),
AtLet(String, Block),
AtExport(String, Block),
Return(Expr),
Switch(Expr, Vec<Case>),
As {
exp: Expr,
pat: Pattern,
block: Block,
},
}
Variants
String(String)
Comment
Exp(Expr)
Block
If
For
Define(String, Vec<String>, Block)
Global(String, Vec<String>, Block)
Let(Vec<(String, Expr)>)
Export(Vec<(String, Expr)>)
AtLet(String, Block)
AtExport(String, Block)
Return(Expr)
Switch(Expr, Vec<Case>)
As
Implementations
sourceimpl TreeItem
impl TreeItem
pub fn run<TM: TempManager, FM: FuncManager>(
&self,
scope: &mut Scope<'_>,
tm: &mut TM,
fm: &FM
) -> Result<String>
Trait Implementations
impl StructuralPartialEq for TreeItem
Auto Trait Implementations
impl RefUnwindSafe for TreeItem
impl Send for TreeItem
impl Sync for TreeItem
impl Unpin for TreeItem
impl UnwindSafe for TreeItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more