pub trait Caseify {
// Required methods
fn to_camel_case(&self) -> String;
fn to_capitalised_case(&self) -> String;
fn to_constant_case(&self) -> String;
fn to_dot_case(&self) -> String;
fn to_kebab_case(&self) -> String;
fn to_pascal_case(&self) -> String;
fn to_sentence_case(&self) -> String;
fn to_snake_case(&self) -> String;
}Expand description
Converts the string to various cases.
Required Methods§
Sourcefn to_camel_case(&self) -> String
fn to_camel_case(&self) -> String
Converts the string to camelCase.
Sourcefn to_capitalised_case(&self) -> String
fn to_capitalised_case(&self) -> String
Converts the string to Capitalised Case.
Sourcefn to_constant_case(&self) -> String
fn to_constant_case(&self) -> String
Converts the string to CONSTANT_CASE.
Sourcefn to_dot_case(&self) -> String
fn to_dot_case(&self) -> String
Converts the string to dot.case.
Sourcefn to_kebab_case(&self) -> String
fn to_kebab_case(&self) -> String
Converts the string to kebab-case.
Sourcefn to_pascal_case(&self) -> String
fn to_pascal_case(&self) -> String
Converts the string to PascalCase.
Sourcefn to_sentence_case(&self) -> String
fn to_sentence_case(&self) -> String
Converts the string to Sentence case.
Sourcefn to_snake_case(&self) -> String
fn to_snake_case(&self) -> String
Converts the string to snake_case.