Struct mech_core::BlockGraph
source · Fields§
§root: Rc<RefCell<Node>>
Implementations§
source§impl BlockGraph
impl BlockGraph
pub fn new(block: Rc<RefCell<Block>>) -> BlockGraph
pub fn id(&self) -> u64
pub fn recompile_blocks(&self) -> Result<(), MechError>
pub fn triggers(&self) -> HashSet<(TableId, RegisterIndex, RegisterIndex)>
pub fn input(&self) -> HashSet<(TableId, RegisterIndex, RegisterIndex)>
pub fn output(&self) -> HashSet<(TableId, RegisterIndex, RegisterIndex)>
pub fn add_child(&mut self, block: &BlockGraph) -> Result<(), MechError>
pub fn solve(&mut self) -> Result<(), MechError>
Trait Implementations§
source§impl Clone for BlockGraph
impl Clone for BlockGraph
source§fn clone(&self) -> BlockGraph
fn clone(&self) -> BlockGraph
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more