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§
Sourcefn kebab_case(&self) -> String
fn kebab_case(&self) -> String
Converts the string to a kebab-case
format.
Sourcefn snake_case(&self) -> String
fn snake_case(&self) -> String
converts into a snake_case
format.
Sourcefn title_case(&self) -> String
fn title_case(&self) -> String
Converts the string to a Title case
format.