[][src]Trait heck::TitleCase

pub trait TitleCase: ToOwned {
    pub fn to_title_case(&self) -> Self::Owned;
}

This trait defines a title case conversion.

In Title Case, word boundaries are indicated by spaces, and every word is capitalized.

Example:

use heck::TitleCase;

let sentence = "We have always lived in slums and holes in the wall.";
assert_eq!(sentence.to_title_case(), "We Have Always Lived In Slums And Holes In The Wall");

Required methods

pub fn to_title_case(&self) -> Self::Owned[src]

Convert this type to title case.

Loading content...

Implementations on Foreign Types

impl TitleCase for str[src]

Loading content...

Implementors

Loading content...