pub struct Node {
pub id: NodeId,
pub verb: Symbol,
pub inputs: Vec<Port>,
pub outputs: Vec<Port>,
pub target: Option<Expr>,
pub role: Option<Symbol>,
pub input: Option<Expr>,
pub output: Option<Expr>,
pub options: Vec<(Symbol, Expr)>,
}Expand description
A topology graph step with named input and output ports.
Fields§
§id: NodeIdNode id unique within the graph.
verb: SymbolGeneric node verb, such as in, out, call, or wire.
inputs: Vec<Port>Canonical in ports.
outputs: Vec<Port>Canonical out ports.
target: Option<Expr>Optional runtime target value expression.
role: Option<Symbol>Optional role tag used by frame-aware targets.
input: Option<Expr>Optional node input shape expression.
output: Option<Expr>Optional node output shape expression.
options: Vec<(Symbol, Expr)>Node options preserved from graph data.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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