Crates.io | char-from-utf8 |
lib.rs | char-from-utf8 |
version | 0.1.0 |
source | src |
created_at | 2023-03-31 08:03:01.826888 |
updated_at | 2023-03-31 08:03:01.826888 |
description | A library that converts utf-8 bytes to a char |
homepage | |
repository | https://github.com/xmh0511/char-from-utf8 |
max_upload_size | |
id | 826135 |
size | 3,259 |
A library that converts utf-8 bytes to a char
use char_from_utf8::{FromUtf8};
fn main(){
let r:char = char::from_utf8(&[0xE6,0x88,0x91]).unwrap();
println!("{r}");
}