2 releases
0.0.2 | Aug 5, 2023 |
---|---|
0.0.1 | Aug 4, 2023 |
#455 in #token
52 downloads per month
Used in 6 crates
(via neure)
4KB
charize
Provide a simple proc macro charize
convert token to char.
Usage
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!(&));
}
LICENSE
MPL-2.0
lib.rs
:
charize
Provide a simple proc macro charize
convert token to char.
Usage
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!(&));
LICENSE
MPL-2.0