parse_single_integer

Function parse_single_integer 

Source
pub(crate) fn parse_single_integer<S: Stage>(
    cx: &mut AcceptContext<'_, '_, S>,
    args: &ArgParser<'_>,
) -> Option<u128>
Expand description

Parse a single integer.

Used by attributes that take a single integer as argument, such as #[link_ordinal] and #[rustc_layout_scalar_valid_range_start]. cx is the context given to the attribute. args is the parser for the attribute arguments.