Skip to main content

bounded

Function bounded 

Source
pub fn bounded(
    name: &str,
    value: Option<i64>,
    default: i64,
    min: i64,
    max: i64,
) -> Result<i64, ToolError>
Expand description

An optional integer argument with its default, checked against an inclusive range.