pub struct RequiredCapacityPlan { /* private fields */ }Expand description
Componentwise maximum required capacity across a finite successor plan.
Implementations§
Source§impl RequiredCapacityPlan
impl RequiredCapacityPlan
Sourcepub fn from_successors(
successors: &[WideResourceVector],
) -> Result<Self, RequiredCapacityPlanError>
pub fn from_successors( successors: &[WideResourceVector], ) -> Result<Self, RequiredCapacityPlanError>
Takes the componentwise maximum across every reachable successor node.
§Errors
Returns RequiredCapacityPlanError::EmptySuccessorSet for an empty
plan, which cannot prove closure coverage.
Sourcepub fn ordinary(
resulting_baseline: WideResourceVector,
mandatory_bound: ResourceVector,
full_recovery_claim: ResourceVector,
) -> Result<Self, RequiredCapacityPlanError>
pub fn ordinary( resulting_baseline: WideResourceVector, mandatory_bound: ResourceVector, full_recovery_claim: ResourceVector, ) -> Result<Self, RequiredCapacityPlanError>
Derives an ordinary caller’s required B' + Q + K vector.
§Errors
Returns RequiredCapacityPlanError::ArithmeticOverflow for the first
component whose canonical additions cannot fit u128.
Sourcepub const fn maximum(self) -> WideResourceVector
pub const fn maximum(self) -> WideResourceVector
Returns the simulated componentwise maximum.
Trait Implementations§
Source§impl Clone for RequiredCapacityPlan
impl Clone for RequiredCapacityPlan
Source§fn clone(&self) -> RequiredCapacityPlan
fn clone(&self) -> RequiredCapacityPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RequiredCapacityPlan
Source§impl Debug for RequiredCapacityPlan
impl Debug for RequiredCapacityPlan
impl Eq for RequiredCapacityPlan
Source§impl PartialEq for RequiredCapacityPlan
impl PartialEq for RequiredCapacityPlan
impl StructuralPartialEq for RequiredCapacityPlan
Auto Trait Implementations§
impl Freeze for RequiredCapacityPlan
impl RefUnwindSafe for RequiredCapacityPlan
impl Send for RequiredCapacityPlan
impl Sync for RequiredCapacityPlan
impl Unpin for RequiredCapacityPlan
impl UnsafeUnpin for RequiredCapacityPlan
impl UnwindSafe for RequiredCapacityPlan
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