pub enum PlanStatus {
Complete(ActivationPlan),
Deferred {
unknown_sizes: Vec<ValueId>,
},
}Expand description
The outcome of a planning attempt.
Variants§
Complete(ActivationPlan)
Every buffer owner had a known size; a full plan was produced.
Deferred
At least one owner’s size is unknown (symbolic shape) at planning time. The executor should re-plan once shapes resolve for the current run.
Implementations§
Source§impl PlanStatus
impl PlanStatus
Sourcepub fn as_complete(&self) -> Option<&ActivationPlan>
pub fn as_complete(&self) -> Option<&ActivationPlan>
The plan, if this is PlanStatus::Complete.
Sourcepub fn is_deferred(&self) -> bool
pub fn is_deferred(&self) -> bool
Whether planning was deferred (unknown sizes).
Sourcepub fn unwrap_complete(self) -> ActivationPlan
pub fn unwrap_complete(self) -> ActivationPlan
Unwrap the complete plan, panicking if deferred (test convenience).
Trait Implementations§
Source§impl Clone for PlanStatus
impl Clone for PlanStatus
Source§fn clone(&self) -> PlanStatus
fn clone(&self) -> PlanStatus
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 moreAuto Trait Implementations§
impl Freeze for PlanStatus
impl RefUnwindSafe for PlanStatus
impl Send for PlanStatus
impl Sync for PlanStatus
impl Unpin for PlanStatus
impl UnsafeUnpin for PlanStatus
impl UnwindSafe for PlanStatus
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