Trait tract_hir::infer::rules::expr::TExp [−][src]
pub trait TExp<T>: Debug {
fn get(&self, context: &Context) -> TractResult<T>;
fn set(&self, context: &mut Context, value: T) -> TractResult<bool>;
fn get_paths(&self) -> Vec<&Path>ⓘ;
}
Expand description
An expression that can be compared by the solver.
Required methods
fn get(&self, context: &Context) -> TractResult<T>
fn get(&self, context: &Context) -> TractResult<T>
Returns the current value of the expression in the given context.
fn set(&self, context: &mut Context, value: T) -> TractResult<bool>
fn set(&self, context: &mut Context, value: T) -> TractResult<bool>
Tries to set the value of the expression in the given context.