pascal_ident_to_string 0.1.0

A macro to convert an identifier to a string literal in pascal case
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 4.42 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 22.72 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • maheshbansod/pascal_string
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • maheshbansod

pascal_ident_to_string

pascal_ident_to_string exports a procedural macro to convert an identifier to a string literal in pascal case

Motivation

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

Example

use pascal_ident_to_string::pascal_string;

let my_rusty_ident = pascal_string!(my_rusty_ident);
assert_eq!(my_rusty_ident, "MyRustyIdent");

License: MIT