pub enum OneOfTwo<A: Unify, B: Unify> {
    A(Rc<A>, Value<B>),
    B(Value<A>, Rc<B>),
}
Expand description

Resolve one out of two Values or return an Err(VarWatch) in a Constraint.

Variants§

§

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

Returned when the first Value is successfully resolved.

§

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

Returned when the second Value is successfully resolved.

Implementations§

Attempt to resolve a OneOfTwo 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.