pub fn to_case<A: AsRef<str>>(case: Case) -> impl Fn(A) -> StringExpand description
Converts a string to a specified case.
ⓘ
use valust_utils::casing::{Case, to_case};
use valust_derive::Valust;
#[derive(Valust)]
struct Casing(
#[trans(fn(to_case(Case::Camel)))]
String
);