pub struct GraphNode {
pub id: NodeId,
pub op: GraphOp,
pub inputs: Vec<EdgeId>,
pub outputs: Vec<EdgeId>,
pub name: String,
}Expand description
A node in the computation graph.
Fields§
§id: NodeIdUnique identifier for this node.
op: GraphOpThe operation this node performs.
inputs: Vec<EdgeId>Input edge identifiers (ordered).
outputs: Vec<EdgeId>Output edge identifiers (ordered).
name: StringHuman-readable name for this node.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphNode
impl RefUnwindSafe for GraphNode
impl Send for GraphNode
impl Sync for GraphNode
impl Unpin for GraphNode
impl UnsafeUnpin for GraphNode
impl UnwindSafe for GraphNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more