tusks-lib 3.2.0

Declarative CLI framework built on top of clap
Documentation
1
2
3
4
5
6
7
8
9
use syn::Ident;

/// Clone an identifier for use as an enum variant name.
///
/// Variant names are kept as-is (snake_case) and paired with
/// `#[allow(non_camel_case_types)]` in the generated code.
pub fn to_variant_ident(ident: &Ident) -> Ident {
    ident.clone()
}