Function aoc_parser::input_param

source ·
pub fn input_param<Val: FromStr, Def: Into<Val>>(
    input: &mut &[&str],
    prefix: &str,
    default: Def
) -> GenResult<Val>where
    Val::Err: Error + 'static,
Expand description

Utility method to parse a parameter from the start of an input with default value