Snap for 11897273 from 0e2c6da914011a2f852139c9857c5bea1906c95d to sdk-release

Change-Id: I0bc82d03286e1a79537b6b56179047821aeeca0f
tree: c8e68230fc3c92a4f58b2f170d7eb33fc98b4c08
  1. src/
  2. .cargo_vcs_info.json
  3. .gitignore
  4. .travis.yml
  5. Android.bp
  6. Cargo.toml
  7. cargo_embargo.json
  8. CHANGELOG.md
  9. LICENSE
  10. METADATA
  11. MODULE_LICENSE_APACHE2
  12. OWNERS
  13. README.md
README.md

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"));