Function case_switcher::to_pascal

source ·
pub fn to_pascal(string: &str) -> String
Expand description

Return a version of the string in PascalCase format.

Arguments

  • string - The string to get a PascalCase version of.

Examples

let result = case_switcher::to_pascal("sample_string");
assert_eq!(result, "SampleString");