enum BlkASTNode {
Area {
childs: Vec<Rc<BlkASTNode>>,
},
Set {
var: String,
expr: Rc<BlkASTNode>,
},
Get {
id: usize,
var: String,
},
Node {
id: usize,
out: Option<String>,
typ: String,
lbl: String,
childs: Vec<(Option<String>, Rc<BlkASTNode>)>,
},
Literal {
value: f64,
},
}
Variants
Area
Fields
childs: Vec<Rc<BlkASTNode>>
Set
Get
Node
Literal
Fields
value: f64
Implementations
sourceimpl BlkASTNode
impl BlkASTNode
pub fn dump(&self, indent: usize, inp: Option<&str>) -> String
pub fn new_area(childs: Vec<Rc<BlkASTNode>>) -> Rc<BlkASTNode>
pub fn new_set(var: &str, expr: Rc<BlkASTNode>) -> Rc<BlkASTNode>
pub fn new_get(id: usize, var: &str) -> Rc<BlkASTNode>
pub fn new_literal(val: &str) -> Result<Rc<BlkASTNode>, BlkJITCompileError>
pub fn new_node(
id: usize,
out: Option<String>,
typ: &str,
lbl: &str,
childs: Vec<(Option<String>, Rc<BlkASTNode>)>
) -> Rc<BlkASTNode>
Trait Implementations
sourceimpl Clone for BlkASTNode
impl Clone for BlkASTNode
sourcefn clone(&self) -> BlkASTNode
fn clone(&self) -> BlkASTNode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for BlkASTNode
impl !Send for BlkASTNode
impl !Sync for BlkASTNode
impl Unpin for BlkASTNode
impl UnwindSafe for BlkASTNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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