pub trait ToUpperCamelCase: ToOwned {
    // Required method
    fn to_upper_camel_case(&self) -> Self::Owned;
Expand description

This trait defines an upper camel case conversion.

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


use heck::ToUpperCamelCase;

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

Required Methods§


fn to_upper_camel_case(&self) -> Self::Owned

Convert this type to upper camel case.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§


impl ToUpperCamelCase for str