Crates.io | snake_cased |
lib.rs | snake_cased |
version | 0.1.0 |
source | src |
created_at | 2022-07-02 06:40:37.988697 |
updated_at | 2022-07-02 06:40:37.988697 |
description | snake_case for struct or enum |
homepage | |
repository | |
max_upload_size | |
id | 617666 |
size | 5,421 |
features:
use snake_cased::{Snaked, SnakedEnum};
#[derive(Snaked)]
struct SnakeCased;
#[derive(SnakedEnum)]
enum AEnum {
AA,
Bb,
}
assert_eq!("snake_cased", SnakeCased::snaked());
assert_eq!("a_a", AEnum::AA.snaked_enum());
assert_eq!("bb", AEnum::Bb.snaked_enum());