Titlecase

Trait Titlecase 

Source
pub trait Titlecase {
    // Required method
    fn titlecase(&self) -> String;
}
Expand description

A trait describing an item that can be converted to title case.

§Examples

use titlecase::Titlecase;

assert_eq!("hello world!".titlecase(), "Hello World!");

Required Methods§

Source

fn titlecase(&self) -> String

Convert self to title case.

Implementors§

Source§

impl<T: AsRef<str>> Titlecase for T