Crates.io | pascal_ident_to_string |
lib.rs | pascal_ident_to_string |
version | 0.1.0 |
source | src |
created_at | 2023-03-11 16:44:37.427032 |
updated_at | 2023-03-11 16:44:37.427032 |
description | A macro to convert an identifier to a string literal in pascal case |
homepage | |
repository | https://github.com/maheshbansod/pascal_string |
max_upload_size | |
id | 807389 |
size | 3,111 |
pascal_ident_to_string
exports a procedural macro to convert an identifier to a string literal in pascal case
I like my identifiers snake-y. The Windows APIs don't. So, this macro helps me with converting the function names
to pascal case string literals before passing them to GetProcAddress
use pascal_ident_to_string::pascal_string;
let my_rusty_ident = pascal_string!(my_rusty_ident);
assert_eq!(my_rusty_ident, "MyRustyIdent");
License: MIT