Crate identconv

Source
Expand description

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

Macros§

camel
Convert an Ident or a string literal to a camelCase Ident
camel_strify
Convert an Ident or a string literal to a camelCase &'static str
english_lower
Convert an Ident or a string literal to a “lower case” &'static str
english_title
Convert an Ident or a string literal to a “Titile Case” &'static str
english_upper
Convert an Ident or a string literal to a “UPPER CASE” &'static str
kebab_strify
Convert an Ident or a string literal to a kebab-case &'static str
lower
Convert an Ident or a string literal to a flatlowercase Ident
lower_strify
Convert an Ident or a string literal to a flatlowercase &'static str
pascal
Convert an Ident or a string literal to a PascalCase Ident
pascal_strify
Convert an Ident or a string literal to a PascalCase &'static str
snake
Convert an Ident or a string literal to a snake_case Ident
snake_strify
Convert an Ident or a string literal to a snake_case &'static str
train_strify
Convert an Ident or a string literal to a Train-Case &'static str
ukebab_strify
Convert an Ident or a string literal to a UPPER-KEBAB-CASE &'static str
upper
Convert an Ident or a string literal to a FLATUPPERCASE Ident
upper_strify
Convert an Ident or a string literal to a FLATUPPERCASE &'static str
usnake
Convert an Ident or a string literal to a UPPER_SNAKE_CASE Ident
usnake_strify
Convert an Ident or a string literal to a UPPER_SNAKE_CASE &'static str