#proc-macro #token #convert #neure

macro charize

Provide a simple proc macro convert token to char

2 releases

0.0.2 Aug 5, 2023
0.0.1 Aug 4, 2023

#517 in #token

Download history 5/week @ 2024-07-21 18/week @ 2024-07-28 16/week @ 2024-08-04 10/week @ 2024-08-11 1/week @ 2024-08-18 15/week @ 2024-08-25 10/week @ 2024-09-01 18/week @ 2024-09-08 13/week @ 2024-09-15 23/week @ 2024-09-22 19/week @ 2024-09-29 6/week @ 2024-10-06 18/week @ 2024-10-13 8/week @ 2024-10-20 1/week @ 2024-10-27 23/week @ 2024-11-03

51 downloads per month
Used in 6 crates (via neure)

MPL-2.0 license

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

No runtime deps