pub struct NodeBuilder<'a, Input, Output = ()> { /* private fields */ }Expand description
Builder for a node in the DAG
Implementations§
Source§impl<Input, Output> NodeBuilder<'_, Input, Output>
impl<Input, Output> NodeBuilder<'_, Input, Output>
Sourcepub fn depends_on<D>(self, deps: D) -> NodeHandle<Input, Output>where
D: DepsCheck<Input>,
pub fn depends_on<D>(self, deps: D) -> NodeHandle<Input, Output>where
D: DepsCheck<Input>,
Specify dependencies for this node
Trait Implementations§
Source§impl<'a, Input: Clone, Output: Clone> Clone for NodeBuilder<'a, Input, Output>
impl<'a, Input: Clone, Output: Clone> Clone for NodeBuilder<'a, Input, Output>
Source§fn clone(&self) -> NodeBuilder<'a, Input, Output>
fn clone(&self) -> NodeBuilder<'a, Input, Output>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, Input, Output> DepsCheck<Output> for &NodeBuilder<'a, Input, Output>
impl<'a, Input, Output> DepsCheck<Output> for &NodeBuilder<'a, Input, Output>
Source§fn to_node_ids(&self) -> Vec<NodeIndex>
fn to_node_ids(&self) -> Vec<NodeIndex>
Convert dependencies to node IDs
Auto Trait Implementations§
impl<'a, Input, Output> Freeze for NodeBuilder<'a, Input, Output>
impl<'a, Input, Output> RefUnwindSafe for NodeBuilder<'a, Input, Output>where
Input: RefUnwindSafe,
Output: RefUnwindSafe,
impl<'a, Input, Output> Send for NodeBuilder<'a, Input, Output>
impl<'a, Input, Output> Sync for NodeBuilder<'a, Input, Output>
impl<'a, Input, Output> Unpin for NodeBuilder<'a, Input, Output>
impl<'a, Input, Output> UnwindSafe for NodeBuilder<'a, Input, Output>where
Input: UnwindSafe,
Output: 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