commit | 28d62e4d55146a0ef79db1a0953b689b39d9a5a2 | [log] [tgz] |
---|---|---|
author | Martin Geisler <mgeisler@google.com> | Mon Apr 08 17:06:35 2024 +0200 |
committer | Martin Geisler <mgeisler@google.com> | Tue Apr 09 09:14:28 2024 +0200 |
tree | 405add421d7f0cd8df85b1b16372402bfc3ba5a5 | |
parent | 4531281945be8b808c32188c3c1802bdf04922fc [diff] |
Import 'ident_case' crate Request Document: go/android-rust-importing-crates For CL Reviewers: go/android3p#cl-review For Build Team: go/ab-third-party-imports Bug: http://b/330678664 Test: m libident_case Change-Id: Id219061fc44b910ee1897bf0d7b5a9df476e5af2
Crate for manipulating case of identifiers in Rust programs.
snake_case
, lowercase
, camelCase
, PascalCase
, SCREAMING_SNAKE_CASE
, and kebab-case
assert_eq!("helloWorld", RenameRule::CamelCase.apply_to_field("hello_world")); assert_eq!("i_love_serde", RenameRule::SnakeCase.apply_to_variant("ILoveSerde"));