pub struct Plan<Id> { /* private fields */ }Expand description
Finite, explicitly capped rule programme sorted by exact layer/order values.
Implementations§
Source§impl<Id: Eq> Plan<Id>
impl<Id: Eq> Plan<Id>
Sourcepub fn try_new(rules: Vec<Rule<Id>>, maximum: usize) -> Result<Self, PlanError>
pub fn try_new(rules: Vec<Rule<Id>>, maximum: usize) -> Result<Self, PlanError>
Check the finite programme and sort it by layer, run-once phase and order. Inactive rules must have been removed by the preflight compiler. Repeated shape links must resolve to one rule handle before this boundary.
§Errors
Rejects excess rules or repeated identities; never silently truncates.
Trait Implementations§
Auto Trait Implementations§
impl<Id> Forget for Plan<Id>
impl<Id> Freeze for Plan<Id>
impl<Id> Move for Plan<Id>
impl<Id> RefUnwindSafe for Plan<Id>
impl<Id> Send for Plan<Id>
impl<Id> Sync for Plan<Id>
impl<Id> Unpin for Plan<Id>
impl<Id> UnsafeUnpin for Plan<Id>
impl<Id> UnwindSafe for Plan<Id>
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