rustc_session::options::parse

Function parse_opt_number

source
pub(crate) fn parse_opt_number<T: Copy + FromStr>(
    slot: &mut Option<T>,
    v: Option<&str>,
) -> bool
Expand description

Use this for any numeric option that lacks a static default.