pub struct NodeLayout {
pub id: NodeID,
pub data: NodeDataLayout,
pub debug: NodeDebugLayout,
}
Expand description
For internal use, this struct represents the layout of a node, both the data and the debug layout.
Fields§
§id: NodeID
§data: NodeDataLayout
§debug: NodeDebugLayout
Implementations§
Source§impl NodeLayout
impl NodeLayout
Sourcepub fn new(id: &NodeID) -> NodeLayout
pub fn new(id: &NodeID) -> NodeLayout
Creates a new empty NodeLayout
with the given NodeID
.
Sourcepub fn input(&mut self, input: impl Into<String>) -> PrimitiveID
pub fn input(&mut self, input: impl Into<String>) -> PrimitiveID
Adds a new input to the node layout. It returns a generic
enum PrimitiveID
that can be used to identify the input.
Sourcepub fn output(&mut self, output: impl Into<String>) -> PrimitiveID
pub fn output(&mut self, output: impl Into<String>) -> PrimitiveID
Adds a new output to the node layout. It returns a generic
enum PrimitiveID
that can be used to identify the output.
Sourcepub fn query(&mut self, query: impl Into<String>) -> PrimitiveID
pub fn query(&mut self, query: impl Into<String>) -> PrimitiveID
Adds a new query to the node layout. It returns a generic
enum PrimitiveID
that can be used to identify the query.
Sourcepub fn queryable(&mut self, queryable: impl Into<String>) -> PrimitiveID
pub fn queryable(&mut self, queryable: impl Into<String>) -> PrimitiveID
Adds a new queryable to the node layout. It returns a generic
enum PrimitiveID
that can be used to identify the queryable.
Auto Trait Implementations§
impl Freeze for NodeLayout
impl RefUnwindSafe for NodeLayout
impl Send for NodeLayout
impl Sync for NodeLayout
impl Unpin for NodeLayout
impl UnwindSafe for NodeLayout
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