pub struct SubGraph {
pub nodes: Vec<Arc<dyn GraphNode>>,
pub edges: Vec<Edge>,
}Expand description
子图(LoopNode 的执行单元)。
注意: SubGraph 内的节点不支持按名跳转(NextStep::Goto),
因为节点没有名字。需要条件回跳请使用外层 Graph 的 edge_if。
Fields§
§nodes: Vec<Arc<dyn GraphNode>>§edges: Vec<Edge>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SubGraph
impl !UnwindSafe for SubGraph
impl Freeze for SubGraph
impl Send for SubGraph
impl Sync for SubGraph
impl Unpin for SubGraph
impl UnsafeUnpin for SubGraph
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