Expand description
Shared helpers for reading config parameters from environment variables.
Used by category_weights.rs and the Group-C operational-parameter
overrides documented in docs/parameter-strategy.md. The pattern is:
Lazy::new reads the env var once at first access; tests verify the
pure parser (parse_*_or_default) directly so they do not need to
mutate process-global env state.
Functionsยง
- parse_
f64_ or_ default - parse_
fraction_ or_ default - parse_
open_ fraction_ or_ default - Parse a fraction strictly inside the open interval (0, 1). Used for parameters where 0.0 or 1.0 produce algorithmic degeneracy (e.g. PPR_ALPHA=1.0 makes restart probability zero, yielding all-zero rankings).
- parse_
u32_ or_ default - parse_
usize_ or_ default - read_
env_ f64 - read_
env_ fraction - read_
env_ open_ fraction - read_
env_ u32 - read_
env_ usize