charize

Crates.iocharize
lib.rscharize
version0.0.2
sourcesrc
created_at2023-08-04 15:39:47.164253
updated_at2023-08-05 04:09:12.634666
descriptionProvide a simple proc macro convert token to char.
homepage
repositoryhttps://github.com/araraloren/charize/
max_upload_size
id935335
size4,965
loren (araraloren)

documentation

README

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

Commit count: 3

cargo fmt