pub enum Compute {
Check {
raw: Value,
types: Vec<RT>,
name: String,
root_name: String,
menv: Option<Rc<Env>>,
},
Default {
expr: Rc<Expr>,
types: Vec<RT>,
name: String,
root_name: String,
menv: Option<Rc<Env>>,
},
Derived {
expr: Rc<Expr>,
ty: Option<RT>,
supplied: Option<Value>,
name: String,
root_name: String,
menv: Option<Rc<Env>>,
},
}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
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