identconv

Crates.ioidentconv
lib.rsidentconv
version0.2.0
sourcesrc
created_at2023-09-18 01:12:12.863623
updated_at2023-09-26 03:30:54.439291
descriptionConvenient macros that turn idents or string literals into another ident or string literal by case converting.
homepage
repositoryhttps://github.com/mintlu8/identconv
max_upload_size
id975446
size10,508
Mincong Lu (mintlu8)

documentation

README

identconv

Convenient macros that turn Idents or ident like string literals into Idents or Strings by case converting.

Macros

Macro To Case Output
lower!() flatlowercase Ident
upper!() FLATUPPERCASE Ident
snake!() snake_case Ident
usnake!() UPPER_SNAKE_CASE Ident
camel!() camelCase Ident
pascal!() PascalCase Ident
lower_strify!() flatlowercase &'static str
upper_strify!() FLATUPPERCASE &'static str
snake_strify!() snake_case &'static str
usnake_strify!() UPPER_SNAKE_CASE &'static str
camel_strify!() camelCase &'static str
pascal_strify!() PascalCase &'static str
kebab_strify!() kebab-case &'static str
ukebab_strify!() UPPER-KEBAB-CASE &'static str
train_strify!() Train-Case &'static str
english_lower!() lower case &'static str
english_upper!() UPPER CASE &'static str
english_title!() Title Case &'static str
Commit count: 13

cargo fmt