Struct heck::AsShoutyKebabCase
source · pub struct AsShoutyKebabCase<T: AsRef<str>>(pub T);
Expand description
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");
Tuple Fields§
§0: T
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for AsShoutyKebabCase<T>where
T: Freeze,
impl<T> RefUnwindSafe for AsShoutyKebabCase<T>where
T: RefUnwindSafe,
impl<T> Send for AsShoutyKebabCase<T>where
T: Send,
impl<T> Sync for AsShoutyKebabCase<T>where
T: Sync,
impl<T> Unpin for AsShoutyKebabCase<T>where
T: Unpin,
impl<T> UnwindSafe for AsShoutyKebabCase<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more