pub enum Edge {
SlotEdge {
input_node: NodeId,
input_index: usize,
output_node: NodeId,
output_index: usize,
},
NodeEdge {
input_node: NodeId,
output_node: NodeId,
},
}Expand description
An edge, which connects two Nodes in
a RenderGraph.
They are used to describe the ordering (which node has to run first)
and may be of two kinds: NodeEdge and SlotEdge.
Edges are added via the render_graph::add_node_edge(output_node, input_node) and the
render_graph::add_slot_edge(output_node, output_slot, input_node, input_slot) methods.
The former simply states that the output_node has to be run before the input_node,
while the later connects an output slot of the output_node
with an input slot of the input_node to pass additional data along.
For more information see SlotType.
Variants
SlotEdge
An edge describing to ordering of both nodes (output_node before input_node)
and connecting the output slot at the output_index of the output_node
with the slot at the input_index of the input_node.
NodeEdge
An edge describing to ordering of both nodes (output_node before input_node).
Implementations
sourceimpl Edge
impl Edge
sourcepub fn get_input_node(&self) -> NodeId
pub fn get_input_node(&self) -> NodeId
Returns the id of the input_node.
sourcepub fn get_output_node(&self) -> NodeId
pub fn get_output_node(&self) -> NodeId
Returns the id of the output_node.
Trait Implementations
impl Eq for Edge
impl StructuralEq for Edge
impl StructuralPartialEq for Edge
Auto Trait Implementations
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read morefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read morefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read morefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read moresourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.