pub struct SplitNode { /* private fields */ }Expand description
A bounded M4 split whose branches converge at exactly one join node.
Implementations§
Source§impl SplitNode
impl SplitNode
Sourcepub fn new(
id: NodeId,
branches: Vec<SplitBranch>,
join: NodeId,
budget: SplitBudget,
) -> Self
pub fn new( id: NodeId, branches: Vec<SplitBranch>, join: NodeId, budget: SplitBudget, ) -> Self
Declares a split, its ordered branches, and its unique join.
Sourcepub const fn with_failure_policy(
self,
failure_policy: LocalFailurePolicy,
) -> Self
pub const fn with_failure_policy( self, failure_policy: LocalFailurePolicy, ) -> Self
Selects sibling failure behavior.
Sourcepub fn branches(&self) -> &[SplitBranch]
pub fn branches(&self) -> &[SplitBranch]
Borrows branches in deterministic aggregation order.
Sourcepub const fn budget(&self) -> SplitBudget
pub const fn budget(&self) -> SplitBudget
Returns the finite local resource budget.
Sourcepub const fn failure_policy(&self) -> LocalFailurePolicy
pub const fn failure_policy(&self) -> LocalFailurePolicy
Returns sibling failure behavior.
Trait Implementations§
impl Eq for SplitNode
impl StructuralPartialEq for SplitNode
Auto Trait Implementations§
impl Freeze for SplitNode
impl RefUnwindSafe for SplitNode
impl Send for SplitNode
impl Sync for SplitNode
impl Unpin for SplitNode
impl UnsafeUnpin for SplitNode
impl UnwindSafe for SplitNode
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