ident_case

Crates.ioident_case
lib.rsident_case
version1.0.1
sourcesrc
created_at2017-05-10 19:51:31.395527
updated_at2019-03-18 20:07:20.426691
descriptionUtility for applying case rules to Rust identifiers.
homepage
repositoryhttps://github.com/TedDriggs/ident_case
max_upload_size
id14055
size9,263
Ted Driggs (TedDriggs)

documentation

https://docs.rs/ident_case/1.0.1

README

Build Status

Crate for manipulating case of identifiers in Rust programs.

Features

  • Supports snake_case, lowercase, camelCase, PascalCase, SCREAMING_SNAKE_CASE, and kebab-case
  • Rename variants, and fields

Examples

assert_eq!("helloWorld", RenameRule::CamelCase.apply_to_field("hello_world"));

assert_eq!("i_love_serde", RenameRule::SnakeCase.apply_to_variant("ILoveSerde"));
Commit count: 10

cargo fmt