nnn-macros 1.0.2

Generate your newtypes from a single macro.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/* Built-in imports */
extern crate alloc;
use alloc::{format, string::String};
/* Modules */
pub(crate) mod closure;
pub(crate) mod regex_input;
pub(crate) mod syn_ext;

pub(crate) fn capitalize(str: &str) -> String {
    let (head, tail) = str.split_at(1);
    format!("{}{}", head.to_uppercase(), tail)
}