[][src]Trait heck::ShoutyKebabCase

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

This trait defines a shouty kebab case conversion.

In SHOUTY-KEBAB-CASE, word boundaries are indicated by hyphens and all words are in uppercase.

Example:

use heck::ShoutyKebabCase;

let sentence = "We are going to inherit the earth.";
assert_eq!(sentence.to_shouty_kebab_case(), "WE-ARE-GOING-TO-INHERIT-THE-EARTH");

Required methods

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

Convert this type to shouty kebab case.

Loading content...

Implementations on Foreign Types

impl ShoutyKebabCase for str[src]

Loading content...

Implementors

Loading content...