pub struct NodeInstance<W: WireKind> {
pub id: NodeId,
pub type_id: String,
pub ports: Vec<PortDef<W>>,
pub params: Vec<ParamValue>,
}Expand description
A placed node in a graph.
Fields§
§id: NodeId§type_id: StringReferences the type_id from the NodeRegistration.
ports: Vec<PortDef<W>>Port definitions (copied from registration on creation).
params: Vec<ParamValue>Per-instance parameter overrides.
Trait Implementations§
Source§impl<W: Clone + WireKind> Clone for NodeInstance<W>
impl<W: Clone + WireKind> Clone for NodeInstance<W>
Source§fn clone(&self) -> NodeInstance<W>
fn clone(&self) -> NodeInstance<W>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, W: WireKind> Deserialize<'de> for NodeInstance<W>
impl<'de, W: WireKind> Deserialize<'de> for NodeInstance<W>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl<W> Freeze for NodeInstance<W>
impl<W> RefUnwindSafe for NodeInstance<W>where
W: RefUnwindSafe,
impl<W> Send for NodeInstance<W>where
W: Send,
impl<W> Sync for NodeInstance<W>where
W: Sync,
impl<W> Unpin for NodeInstance<W>where
W: Unpin,
impl<W> UnsafeUnpin for NodeInstance<W>
impl<W> UnwindSafe for NodeInstance<W>where
W: UnwindSafe,
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