pub struct ProducerStability { /* private fields */ }Expand description
A producer/atom closure checked without evaluation for one evaluator.
This fact covers only the supplied roots, ordinary cache domain, and the canonical representation capability. A driver must additionally prove its source roots are complete and its host/runtime is privately owned. There is no public constructor and this does not grant temporal error authority.
use dive_eval::{Evaluator, Scope};
use dive_ir::ExprId;
fn inspect(evaluator: &Evaluator, root: (ExprId, Scope)) -> dive_eval::Result<()> {
if let Some(fact) = evaluator.canonical_producer_stability_budgeted(&[root], &[], None)? {
assert!(fact.belongs_to(evaluator));
}
Ok(())
}Implementations§
Source§impl ProducerStability
impl ProducerStability
Sourcepub fn belongs_to(&self, evaluator: &Evaluator) -> bool
pub fn belongs_to(&self, evaluator: &Evaluator) -> bool
Whether this fact belongs to the actual evaluator being inspected.
Trait Implementations§
Source§impl Clone for ProducerStability
impl Clone for ProducerStability
Auto Trait Implementations§
impl !RefUnwindSafe for ProducerStability
impl !UnwindSafe for ProducerStability
impl Forget for ProducerStability
impl Freeze for ProducerStability
impl Move for ProducerStability
impl Send for ProducerStability
impl Sync for ProducerStability
impl Unpin for ProducerStability
impl UnsafeUnpin for ProducerStability
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