Struct hexodsp::wblockdsp::ASTNodeRef
source · [−]Expand description
The WBlockDSP Abstract Syntax Tree. It is generated by BlockFun::generate_tree in Block2JITCompiler::compile.
Tuple Fields
0: Rc<RefCell<JASTNode>>
Implementations
sourceimpl ASTNodeRef
impl ASTNodeRef
sourcepub fn first_child_ref(&self) -> Option<ASTNodeRef>
pub fn first_child_ref(&self) -> Option<ASTNodeRef>
Returns the first child AST node.
sourcepub fn first_child(&self) -> Option<(String, String, ASTNodeRef)>
pub fn first_child(&self) -> Option<(String, String, ASTNodeRef)>
Returns the first child, including input/output info.
Trait Implementations
sourceimpl BlockASTNode for ASTNodeRef
impl BlockASTNode for ASTNodeRef
fn from(id: usize, typ: &str, lbl: &str) -> ASTNodeRef
fn add_node(&self, in_port: String, out_port: String, node: ASTNodeRef)
fn add_structural_node(&self, node: Self)
sourceimpl Clone for ASTNodeRef
impl Clone for ASTNodeRef
sourcefn clone(&self) -> ASTNodeRef
fn clone(&self) -> ASTNodeRef
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 ASTNodeRef
impl !Send for ASTNodeRef
impl !Sync for ASTNodeRef
impl Unpin for ASTNodeRef
impl !UnwindSafe for ASTNodeRef
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