Trait StringFmt

Source
pub trait StringFmt {
    // Required methods
    fn kebab_case(&self) -> String;
    fn dot_case(&self) -> String;
    fn snake_case(&self) -> String;
    fn title_case(&self) -> String;
}
Expand description

StringFmt is a trait that provides methods for formatting strings. Note This crate requires the alloc feature

Required Methods§

Source

fn kebab_case(&self) -> String

Converts the string to a kebab-case format.

Source

fn dot_case(&self) -> String

Converts the string to a dot.case format.

Source

fn snake_case(&self) -> String

converts into a snake_case format.

Source

fn title_case(&self) -> String

Converts the string to a Title case format.

Implementors§