Enum canrun::core::constraints::TwoOfThree
source · pub enum TwoOfThree<A: Unify, B: Unify, C: Unify> {
AB(Rc<A>, Rc<B>, Value<C>),
BC(Value<A>, Rc<B>, Rc<C>),
AC(Rc<A>, Value<B>, Rc<C>),
}
Expand description
Resolve two out of three Value
s or return an Err(VarWatch)
in a Constraint
.
Variants§
AB(Rc<A>, Rc<B>, Value<C>)
Returned when the first and second Value
s are successfully resolved.
BC(Value<A>, Rc<B>, Rc<C>)
Returned when the second and third Value
s are successfully resolved.
AC(Rc<A>, Value<B>, Rc<C>)
Returned when the first and third Value
s are successfully resolved.