naming_lib/lib.rs
1//! Library for identifying and converting identifiers naming format (case | notation).
2//!
3//! It serves three purposes:
4//!
5//! 1. Judge if an identifier is written in a certain format.
6//! (example: [is_camel()](crate::detector::is_camel()))
7//!
8//! 2. Automatically identify format with [which_case()](crate::detector::which_case()).
9//!
10//! 3. Convert identifiers between different naming formats.
11//! (example: [to_camel()](NamingCase::to_camel()))
12
13// Just re-expose every public component in two modules.
14// We'll test them in integrate tests.
15
16pub use detector::*;
17pub use naming_case::*;
18
19mod naming_case;
20mod detector;