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.