Skip to main content

parse_order

Function parse_order 

Source
pub fn parse_order(
    spec: &str,
) -> Result<(StrategyName, Option<u64>, Option<u64>), String>
Expand description

An order specification on its own — halton/5, lex, shuffle(seed=7) — as the algebra’s strategy, truncation, and seed.

A caller that has an order and nothing else used to reach this by writing __o in 0..1 order <spec> and running the whole comprehension parser over the result, then matching the algebra tree it got back for the one node it wanted. The parser has had an order-spec entry point all along; this exposes it.