Function konst::primitive::parse_u8[][src]

pub const fn parse_u8(s: &str) -> Result<u8, ParseIntError>
This is supported on crate feature parsing_no_proc only.
Expand description

Parses a u8 from a &str.

This returns an Err if the string would not successfully .parse() into a u8.

To parse a u8 from only part of a string, you can use Parser::parse_u8.

For an example of how to use this function, you can look at the one for u128.