#proc-macro #convert #token #neure

charize

提供简单的宏转换标记为字符

2 个版本

0.0.2 2023 年 8 月 5 日
0.0.1 2023 年 8 月 4 日

#525#token

Download history 13/week @ 2024-03-11 22/week @ 2024-03-18 23/week @ 2024-03-25 58/week @ 2024-04-01 24/week @ 2024-04-08 3/week @ 2024-04-15 12/week @ 2024-04-22 10/week @ 2024-04-29 9/week @ 2024-05-06 8/week @ 2024-05-13 14/week @ 2024-05-20 11/week @ 2024-05-27 16/week @ 2024-06-03 15/week @ 2024-06-10 8/week @ 2024-06-17 17/week @ 2024-06-24

57 每月下载次数
4 个包中使用 (通过 neure)

MPL-2.0 许可证

4KB

charize

提供简单的宏 charize 转换标记为字符。

用法

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


lib.rs:

charize

提供简单的宏 charize 转换标记为字符。

用法

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

无运行时依赖