Trait brane_shr::formatters::Capitalizeable

source ·
pub trait Capitalizeable: AsRef<str> {
    // Provided method
    fn capitalize(&self) -> CapitalizeFormatter<'_> { ... }
}
Expand description

Helper trait for the CapitalizeFormatter that implements a convenient capitalize() function for all strings.

Provided Methods§

source

fn capitalize(&self) -> CapitalizeFormatter<'_>

Returns this str-like object wrapped in a CapitalizeFormatter so it may be printed with a capital first letter.

§Returns

A new CapitalizeFormatter that implements Display (only).

Implementors§

source§

impl<T> Capitalizeable for T
where T: AsRef<str>,