[][src]Trait heck::KebabCase

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

This trait defines a kebab case conversion.

In kebab-case, word boundaries are indicated by hyphens.

Example:

use heck::KebabCase;

let sentence = "We are going to inherit the earth.";
assert_eq!(sentence.to_kebab_case(), "we-are-going-to-inherit-the-earth");

Required methods

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

Convert this type to kebab case.

Loading content...

Implementations on Foreign Types

impl KebabCase for str[src]

Loading content...

Implementors

Loading content...