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

pub enum TwoOfThree<A: Debug, B: Debug, C: Debug> {
    AB(Rc<A>, Rc<B>, Val<C>),
    BC(Val<A>, Rc<B>, Rc<C>),
    AC(Rc<A>, Val<B>, Rc<C>),
}
Expand description

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

Variants

AB

Returned when the first and second Vals are successfully resolved.

Tuple Fields of AB

0: Rc<A>1: Rc<B>2: Val<C>
BC

Returned when the second and third Vals are successfully resolved.

Tuple Fields of BC

0: Val<A>1: Rc<B>2: Rc<C>
AC

Returned when the first and third Vals are successfully resolved.

Tuple Fields of AC

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

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

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.