Extracts path segment constraints from route options.
The returned constraints are freshly built objects (no shared/mutated state), so the caller can safely cache or transform them.
The route options to extract constraints from.
An array of partial segment constraints for the path.
Extracts path segment constraints from route options.
The returned constraints are freshly built objects (no shared/mutated state), so the caller can safely cache or transform them.