Debian Codegraph @

third_party/rust/ident_case/README.md

raw
1 [![Build Status](https://travis-ci.org/TedDriggs/ident_case.svg?branch=master)](https://travis-ci.org/TedDriggs/ident_case)
2
3 Crate for manipulating case of identifiers in Rust programs.
4
5 # Features
6 * Supports `snake_case`, `lowercase`, `camelCase`,
7 `PascalCase`, `SCREAMING_SNAKE_CASE`, and `kebab-case`
8 * Rename variants, and fields
9
10 # Examples
11 ```rust
12 assert_eq!("helloWorld", RenameRule::CamelCase.apply_to_field("hello_world"));
13
14 assert_eq!("i_love_serde", RenameRule::SnakeCase.apply_to_variant("ILoveSerde"));
15 ```