Skip to main content

parse_single_integer

Function parse_single_integer 

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

Parse a single integer.

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