[go: up one dir, main page]

ident_case 1.0.1

Utility for applying case rules to Rust identifiers.
Documentation
  • Coverage
  • 100%
    11 out of 11 items documented1 out of 4 items with examples
  • Size
  • Source code size: 8.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.45 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • TedDriggs/ident_case
    3 0 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • TedDriggs

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