Skip to main content

set_bounded

Function set_bounded 

Source
pub fn set_bounded(
    cfg: &mut Config,
    path: &str,
    value: f64,
) -> Result<(), ConfigError>
Expand description

Sets a bounded value in the type its key has. set_text("{path} = {value:?}") wrote a float, which an integer key refused with a Type error that ended the whole band run. An integer key takes the value rounded (bounds keeps its bounds whole; a sampled value between them is rounded to a count).