pub fn parse_eff_bit_layers(
spec: Option<&str>,
) -> Result<Vec<(Vec<usize>, f64)>>Expand description
Parse a per-block effective-bit specification such as "0-7,27:2.0;12:1.5".
Matches littlebit-bench/patches/mixed-bits.patch::parse_eff_bit_layers.
Each ;-delimited group has <blocks>:<eff_bit> where <blocks> is a comma-separated
list of single indices or inclusive a-b ranges. Each group’s block indices are
deduplicated and sorted ascending. Returns an empty vector for None or blank strings.
§Errors
Returns LittleBitError::InvalidConfig if any group lacks :, contains an invalid or
reversed block range, contains an empty block list, or specifies a non-positive/non-finite bit target.