Function rustc_session::options::parse::parse_opt_langid
source ยท pub(crate) fn parse_opt_langid(
slot: &mut Option<LanguageIdentifier>,
v: Option<&str>,
) -> bool
Expand description
Parse an optional language identifier, e.g. en-US
or zh-CN
.