pub fn base2562byte(char: char) -> u8Expand description
Converts a single character from the CHARSETS constant into its corresponding byte value.
§Parameters
char- A single character from the CHARSETS constant to be converted.
§Returns
A byte value from the range of 0 to 255 that corresponds to the input character.
§Panics
This function will panic if the input character is not found in the CHARSETS constant.
§Example
use base256_lib::{base2562byte};
let char: char = 'Ł';
let result: u8 = base2562byte(char);
assert_eq!(result, 97);