Enum canrun::state::constraints::OneOfTwo[][src]

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

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

Variants

A

Returned when the first Val is successfully resolved.

Tuple Fields of A

0: Rc<A>1: Val<B>
B

Returned when the second Val is successfully resolved.

Tuple Fields of B

0: Val<A>1: Rc<B>

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

Performs the conversion.

Performs the conversion.

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.