/// 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: /// /// ```rust /// use heck::ToShoutyKebabCase; /// /// let sentence = "We are going to inherit the earth."; /// assert_eq!(sentence.to_shouty_kebab_case(), "WE-ARE-GOING-TO-INHERIT-THE-EARTH"); /// ``` pubtrait ToShoutyKebabCase: ToOwned { /// Convert this type to shouty kebab case. fn to_shouty_kebab_case(&self) -> Self::Owned;
}
/// This wrapper performs a kebab case conversion in [`fmt::Display`]. /// /// ## Example: /// /// ``` /// use heck::AsShoutyKebabCase; /// /// let sentence = "We are going to inherit the earth."; /// assert_eq!(format!("{}", AsShoutyKebabCase(sentence)), "WE-ARE-GOING-TO-INHERIT-THE-EARTH"); /// ``` pubstruct AsShoutyKebabCase<T: AsRef<str>>(pub T);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.