Skip to main content

parse_order_spec

Function parse_order_spec 

Source
pub fn parse_order_spec(text: &str) -> Result<TraversalOrder, String>
Expand description

Parse an order spec string into a TraversalOrder.

Three syntactic shapes (per SRD-18d §“GK text grammar”):

  • Bare name: lex, extrema, shells, sobol, … No truncation; uses the strategy’s defaults.
  • Terse name/N: extrema/1, shells/2, halton/64, lex/100. The /N suffix is the strategy’s natural truncation parameter (count, strata, or depth).
  • Keyword form name(arg=val, …): full parameter surface for strategies with multiple knobs. shells(origin=center, depth=3), lhs(count=20, seed=42), space_filling(sobol, count=64).