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 Values or return an Err(VarWatch) in a Constraint.

Variants§

§

AB(Rc<A>, Rc<B>, Value<C>)

Returned when the first and second Values are successfully resolved.

§

BC(Value<A>, Rc<B>, Rc<C>)

Returned when the second and third Values are successfully resolved.

§

AC(Rc<A>, Value<B>, Rc<C>)

Returned when the first and third Values are successfully resolved.

Implementations§

Attempt to resolve a TwoOfThree enum from a State.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.