Skip to main content

const_parse_u8

Function const_parse_u8 

Source
pub const fn const_parse_u8(s: &str) -> u8
Expand description

const fn parse of a &str decimal digit sequence into u8. Panics at compile time if the string is empty or contains non-digit chars.