[][src]Trait heck::CamelCase

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

This trait defines a camel case conversion.

In CamelCase, word boundaries are indicated by capital letters, including the first word.

Example:

use heck::CamelCase;

let sentence = "We are not in the least afraid of ruins.";
assert_eq!(sentence.to_camel_case(), "WeAreNotInTheLeastAfraidOfRuins");

Required methods

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

Convert this type to camel case.

Loading content...

Implementations on Foreign Types

impl CamelCase for str[src]

Loading content...

Implementors

Loading content...