pub struct SplitBranch { /* private fields */ }Expand description
One split branch. M4 branches are linear; M7 may embed a bounded flow.
Implementations§
Source§impl SplitBranch
impl SplitBranch
Sourcepub fn new(steps: Vec<StepNode>) -> Self
pub fn new(steps: Vec<StepNode>) -> Self
Declares the byte-compatible M4 linear branch form.
Cardinality and identifier uniqueness are checked by
FlowGraph::compile, so builders can assemble a complete diagnostic
instead of panicking while under construction.
Sourcepub fn steps(&self) -> &[StepNode]
pub fn steps(&self) -> &[StepNode]
Borrows the legacy linear branch steps.
An M7 flow branch returns an empty slice; use flow_graph
to inspect its declaration.
Sourcepub fn flow_graph(&self) -> Option<&FlowGraph>
pub fn flow_graph(&self) -> Option<&FlowGraph>
Borrows the M7 branch graph when this is a flow branch.
Trait Implementations§
Source§impl Clone for SplitBranch
impl Clone for SplitBranch
Source§impl Debug for SplitBranch
impl Debug for SplitBranch
impl Eq for SplitBranch
Source§impl PartialEq for SplitBranch
impl PartialEq for SplitBranch
impl StructuralPartialEq for SplitBranch
Auto Trait Implementations§
impl Forget for SplitBranch
impl Freeze for SplitBranch
impl Move for SplitBranch
impl RefUnwindSafe for SplitBranch
impl Send for SplitBranch
impl Sync for SplitBranch
impl Unpin for SplitBranch
impl UnsafeUnpin for SplitBranch
impl UnwindSafe for SplitBranch
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