Trait heck::ShoutySnakeCase [−][src]
pub trait ShoutySnakeCase: ToOwned { fn to_shouty_snake_case(&self) -> Self::Owned; }
This trait defines a shouty snake case conversion.
In SHOUTY_SNAKE_CASE, word boundaries are indicated by underscores and all words are in uppercase.
Example:
extern crate heck; fn main() { use heck::ShoutySnakeCase; let sentence = "That world is growing in this minute."; assert_eq!(sentence.to_shouty_snake_case(), "THAT_WORLD_IS_GROWING_IN_THIS_MINUTE"); }
Required Methods
fn to_shouty_snake_case(&self) -> Self::Owned
Convert this type to shouty snake case.
Implementations on Foreign Types
impl ShoutySnakeCase for str
[src]
impl ShoutySnakeCase for str
fn to_shouty_snake_case(&self) -> Self::Owned
[src]
fn to_shouty_snake_case(&self) -> Self::Owned