Struct convert_case::FromCasing
source · [−]pub struct FromCasing { /* private fields */ }
Expand description
Holds information about parsing before converting into a case.
This struct is used when invoking the from_case
method on
Casing
. FromCasing
also implements Casing
.
use convert_case::{Case, Casing};
let title = "ninety-nine_problems".from_case(Case::Snake).to_case(Case::Title);
assert_eq!("Ninety-nine Problems", title);