| Crates.io | naming-conventions |
| lib.rs | naming-conventions |
| version | 1.0.1 |
| created_at | 2023-09-06 16:57:23.729723+00 |
| updated_at | 2023-09-06 17:07:28.89312+00 |
| description | Naming Conventions |
| homepage | https://github.com/vhidvz/naming-conventions |
| repository | https://github.com/vhidvz/naming-conventions.git |
| max_upload_size | |
| id | 965477 |
| size | 21,662 |
Simple and Fast naming convention library.
use naming_conventions::{get_convention, CaseName};
fn main() {
let snake_case = get_convention(CaseName::SnakeCase);
let string = "camelCase";
println!("to snake_case: {}", snake_case.to(string).unwrap());
println!("is snake_case: {}", snake_case.is(string).unwrap());
}
use naming_conventions::{to_snake_case, is_snake_case};
fn main() {
let string = "camelCase";
println!("to snake_case: {}", to_snake_case(string).unwrap());
println!("is snake_case: {}", is_snake_case(string).unwrap());
}