Function hex_uint
fn hex_uint<Input, Output, Error>(input: &mut Input) -> Result<Output, Error>
where
Input: StreamIsPartial + Stream,
<Input as Stream>::Token: AsChar,
<Input as Stream>::Slice: AsBStr,
Output: HexUint,
Error: ParserError<Input>
Decode a variable-width hexadecimal integer (e.g. u32)
Complete version: Will parse until the end of input if it has fewer characters than the type supports.
[Partial version][crate::_topic::partial]: Will return Err(winnow::error::ErrMode::Incomplete(_)) if end-of-input
is hit before a hard boundary (non-hex character, more characters than supported).
Effective Signature
Assuming you are parsing a &str [Stream] into a u32:
# use *;;
#
Example
# use *;
use hex_uint;
assert_eq!;
assert_eq!;
assert!;
# use *;
# use ;
# use Partial;
use hex_uint;
assert_eq!;
assert_eq!;
assert!;