pub fn branch<A: Clone + 'static + FromStr, B, TH, EL>(
vm: RoundVM,
cond: B,
thn: TH,
els: EL
) -> (RoundVM, A)Expand description
Partitions the domain into two subspaces that do not interact with each other.
Arguments
vmthe current VMcondthe condition to evaluatethnthe expression to evaluate if the condition is trueelsthe expression to evaluate if the condition is false
Generic Parameters
AThe type of value returned by the expression.B- The type of cond, which must be a closure that takes no arguments and returns a value of typebool.F- The type of thn and els, which must be a closure that takes aRoundVMas argument and returns a tuple(RoundVM, A).
Returns
the value of the expression