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§
sourcefn capitalize(&self) -> CapitalizeFormatter<'_>
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).