br-code 0.1.7

This is an code
Documentation
1
2
3
4
5
6
7
8
9
/// 0-9a-z字母转数字
pub fn letter_to_number(text: &str) -> i32 {
    let z = text.as_bytes();
    if z[0] as i32 >= 65 {
        z[0] as i32 - 55
    } else {
        z[0] as i32 - 48
    }
}