def coordinate_result
import bendtorch-core@0.1.0.0/src/shape/LAWS.bend as LAWSimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
19def coordinate_result(-shape: Shape.Shape, result: Result<&2, &2, Shape.Error, Shape.CheckedCoordinate<shape>>) -> Maybe<&2, List<&2, U32>>:
20 match result:
21 case Fail{error}:
22 None{}
23 case Done{coordinate}:
24 Some{Shape.coordinate_values(shape, coordinate)}
Uses (8)
Used by (16)
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:checked_indices
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:unflatten_checked
- bendtorch-core@0.1.0.0/src/shape/LAWS:unflatten_checked_refines
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:checked_fit
- bendtorch-core@0.1.0.0/src/shape/boundary_proofs:project_left_checked
- …