naming-conventions

Crates.ionaming-conventions
lib.rsnaming-conventions
version1.0.1
sourcesrc
created_at2023-09-06 16:57:23.729723
updated_at2023-09-06 17:07:28.89312
descriptionNaming Conventions
homepagehttps://github.com/vhidvz/naming-conventions
repositoryhttps://github.com/vhidvz/naming-conventions.git
max_upload_size
id965477
size21,662
Vahid V. (vhidvz)

documentation

https://docs.rs/naming-conventions

README

Naming Conventions

crates.io MSRV Documentation LICENSE codecov Build Status dependency status downloads

Simple and Fast naming convention library.

Quick Start Guide

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());
}

License

MIT

Commit count: 8

cargo fmt