snake_cased

Crates.iosnake_cased
lib.rssnake_cased
version0.1.0
sourcesrc
created_at2022-07-02 06:40:37.988697
updated_at2022-07-02 06:40:37.988697
descriptionsnake_case for struct or enum
homepage
repository
max_upload_size
id617666
size5,421
Abrahum (abrahum)

documentation

README

snake_cased

features:

  • derive
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());
Commit count: 0

cargo fmt