Skip to main content

valid_difficulty_names

Function valid_difficulty_names 

Source
pub fn valid_difficulty_names() -> Vec<&'static str>
Expand description

The exact set of --difficulty / Python difficulty= values accepted — derived from DIFFICULTY_MAP so there is one source of truth. The CLI (main.rs) already rejects anything else via clap::PossibleValuesParser; this exists so the PyO3 generate() binding (lib.rs) can reject an unrecognized value too instead of silently falling back to medium via difficulty_settings’s own fallback above.