Skip to main content

repair_values

Function repair_values 

Source
pub fn repair_values(
    module: PioModule<BalancedNetwork>,
) -> Result<PioModule<BalancedNetwork>, Error>
Expand description

Clamp every out-of-domain value of a parsed module to its repaired value and record the pass: one Repair history entry naming each change in its parameters, and one VALIDATE.BALANCED.VALUE_DOMAIN finding per repaired field. The retained source is severed — the value no longer matches the bytes, so a same format write serializes the repaired network rather than echoing the input. A module already in domain comes back unchanged.

§Errors

Never on scan output: the record constructors refuse only unbounded caller data, and the scan is bounded by the model.