Crates.io | charize |
lib.rs | charize |
version | 0.0.2 |
source | src |
created_at | 2023-08-04 15:39:47.164253 |
updated_at | 2023-08-05 04:09:12.634666 |
description | Provide a simple proc macro convert token to char. |
homepage | |
repository | https://github.com/araraloren/charize/ |
max_upload_size | |
id | 935335 |
size | 4,965 |
Provide a simple proc macro charize
convert token to char.
pub fn main() {
assert_eq!('o', charize::charize!(o));
assert_eq!('1', charize::charize!(1));
assert_eq!('我', charize::charize!(我));
assert_eq!('P', charize::charize!(P));
assert_eq!('@', charize::charize!(@));
assert_eq!('&', charize::charize!(&));
}
MPL-2.0