pub struct NodeProto<N, P> {
pub data: N,
pub ports: Vec<P>,
}Expand description
The no-trait-needed escape hatch: a plain blueprint struct.
If your library is data-driven (loaded from RON/JSON at startup) rather
than a set of Rust types, just build these. It implements NodeTemplate
by cloning.
Fields§
§data: NData for the node itself.
ports: Vec<P>Port data in pinout order.
Trait Implementations§
Auto Trait Implementations§
impl<N, P> Freeze for NodeProto<N, P>where
N: Freeze,
impl<N, P> RefUnwindSafe for NodeProto<N, P>where
N: RefUnwindSafe,
P: RefUnwindSafe,
impl<N, P> Send for NodeProto<N, P>
impl<N, P> Sync for NodeProto<N, P>
impl<N, P> Unpin for NodeProto<N, P>
impl<N, P> UnsafeUnpin for NodeProto<N, P>where
N: UnsafeUnpin,
impl<N, P> UnwindSafe for NodeProto<N, P>where
N: UnwindSafe,
P: 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