pub struct NodeOp {
pub idx: u8,
pub node: Node,
pub out_idxlen: (usize, usize),
pub in_idxlen: (usize, usize),
pub at_idxlen: (usize, usize),
pub mod_idxlen: (usize, usize),
pub inputs: Vec<(usize, usize, Option<usize>)>,
pub in_connected: u64,
pub out_connected: u64,
}
Expand description
Step in a NodeProg
that stores the to be
executed node and output operations.
Fields
idx: u8
Stores the index of the node
node: Node
Stores the reference to the node.
out_idxlen: (usize, usize)
Output index and length of the node:
in_idxlen: (usize, usize)
Input index and length of the node:
at_idxlen: (usize, usize)
Atom data index and length of the node:
mod_idxlen: (usize, usize)
ModOp index and length of the node:
inputs: Vec<(usize, usize, Option<usize>)>
Input indices,
(
in_connected: u64
A bit mask which indicates which of the input ports are actually used/connected to some output.
out_connected: u64
A bit mask which indicates which of the output ports are actually used/connected to some input.
Implementations
sourceimpl NodeOp
impl NodeOp
pub fn in_idx_belongs_to_nodeop(&self, idx: usize) -> bool
pub fn set_in_idx_connected_flag(&mut self, global_idx: usize)
pub fn out_idx_belongs_to_nodeop(&self, idx: usize) -> bool
pub fn set_out_idx_connected_flag(&mut self, global_idx: usize)
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NodeOp
impl Send for NodeOp
impl Sync for NodeOp
impl Unpin for NodeOp
impl !UnwindSafe for NodeOp
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