Trait Caseify

Source
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§

Source

fn to_camel_case(&self) -> String

Converts the string to camelCase.

Source

fn to_capitalised_case(&self) -> String

Converts the string to Capitalised Case.

Source

fn to_constant_case(&self) -> String

Converts the string to CONSTANT_CASE.

Source

fn to_dot_case(&self) -> String

Converts the string to dot.case.

Source

fn to_kebab_case(&self) -> String

Converts the string to kebab-case.

Source

fn to_pascal_case(&self) -> String

Converts the string to PascalCase.

Source

fn to_sentence_case(&self) -> String

Converts the string to Sentence case.

Source

fn to_snake_case(&self) -> String

Converts the string to snake_case.

Implementations on Foreign Types§

Source§

impl Caseify for str

Implementors§