Skip to main content

radix_decode_str

Function radix_decode_str 

Source
pub(crate) fn radix_decode_str<D: DecodeByLimb>(
    src: &str,
    radix: u32,
    out: &mut D,
) -> Result<(), DecodeError>
Expand description

Decode an ascii string in base radix, writing the result to the DecodeByLimb instance out.

The input must be a non-empty ascii string, may begin with a + character, and may use _ as a separator between digits.

ยงPanics

  • if radix is not within RADIX_ENCODING_MIN..=RADIX_ENCODING_MAX.