pub struct NodeDef<State, Deps = (), End = ()> {
pub name: String,
pub node: Box<dyn BaseNode<State, Deps, End>>,
}Expand description
Node definition for registration in a graph.
Fields§
§name: StringNode name.
node: Box<dyn BaseNode<State, Deps, End>>The node implementation.
Implementations§
Auto Trait Implementations§
impl<State, Deps, End> Freeze for NodeDef<State, Deps, End>
impl<State, Deps = (), End = ()> !RefUnwindSafe for NodeDef<State, Deps, End>
impl<State, Deps, End> Send for NodeDef<State, Deps, End>
impl<State, Deps, End> Sync for NodeDef<State, Deps, End>
impl<State, Deps, End> Unpin for NodeDef<State, Deps, End>
impl<State, Deps = (), End = ()> !UnwindSafe for NodeDef<State, Deps, End>
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