def choice_output
import bendtorch-core@0.1.0.0/src/shape/plan_proofs.bend as PlanProofsimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
58def choice_output(-left: U32, -right: U32, choice: Shape.AxisChoice<left, right>) -> Maybe<&2, Nat>:
59 match choice:
60 case Shape.Picks{output, axis}:
61 Some{U32.to_nat(output)}
62 case Shape.Clashes{}:
63 None{}
Uses (5)
Used by (5)
- bendtorch-core@0.1.0.0/src/shape/plan_proofs:align_step_complete
- bendtorch-core@0.1.0.0/src/shape/plan_proofs:axis_complete
- bendtorch-core@0.1.0.0/src/shape/plan_proofs:axis_equal_complete
- bendtorch-core@0.1.0.0/src/shape/plan_proofs:axis_left_complete
- bendtorch-core@0.1.0.0/src/shape/plan_proofs:axis_right_complete