pub enum Compute {
Check {
raw: Value,
types: Rc<Vec<RT>>,
name: Rc<str>,
root_name: Rc<str>,
menv: Option<Rc<Env>>,
},
Default {
expr: Rc<Expr>,
op: Option<Op>,
types: Rc<Vec<RT>>,
name: Rc<str>,
root_name: Rc<str>,
menv: Option<Rc<Env>>,
},
Derived {
expr: Rc<Expr>,
op: Option<Op>,
ty: Option<RT>,
supplied: Option<Value>,
name: Rc<str>,
root_name: Rc<str>,
menv: Option<Rc<Env>>,
},
Bridge(Rc<dyn Fn() -> R<Value>>),
}Expand description
how a slot computes its value
Variants§
Check
a supplied value checked against the types
Fields
Default
a default expression
Fields
Derived
a derived expression
Fields
Bridge(Rc<dyn Fn() -> R<Value>>)
a query-engine slot: forcing it runs the given thunk, which reads the value through the incremental database (qengine). Lets the value layer force a query-graph slot uniformly (§7.5 navigation, §6 asserts).
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Compute
impl !Send for Compute
impl !Sync for Compute
impl !UnwindSafe for Compute
impl Freeze for Compute
impl Unpin for Compute
impl UnsafeUnpin for Compute
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