pub enum Body<'c> {
List {
items: Vec<Body<'c>>,
},
Text {
value: &'c str,
line: usize,
},
Print {
expr: Box<Expr<'c>>,
line: usize,
},
Import {
source: Box<Expr<'c>>,
targets: Vec<(Uuid, &'c str, ImportTarget<'c>)>,
line: usize,
},
Macro {
name: &'c str,
body: Box<Body<'c>>,
arguments: Vec<(Option<&'c str>, Expr<'c>)>,
line: usize,
},
}
Variants
List | Fields
|
Text | Fields
|
Print | Fields
|
Import | Fields
source | Target template to import, which can be evaluated at runtime from
provided expression.
| targets | Target list alias => name.
| line | |
|
Macro | Fields
|
Methods
impl<'c> Body<'c>
impl<'c> Body<'c>
Trait Implementations
impl<'c> Parse<'c> for Body<'c>
impl<'c> Parse<'c> for Body<'c>
Derived Implementations