pub trait SmartFormatCase {
// Required methods
fn capitalize(self) -> Capitalize<Self>
where Self: Sized + Display;
fn lowercase(self) -> Lowercase<Self>
where Self: Sized + Display;
fn uppercase(self) -> Uppercase<Self>
where Self: Sized + Display;
}Expand description
Extension trait for case transformations on Display values.
§Design note
Case transforms are locale-insensitive — they use Rust’s char::to_uppercase() /
char::to_lowercase(), which implement Unicode Default Case Conversion (not
locale-specific rules like Turkish dotted-I). This is the right default for
programmatic text (identifiers, HTML, protocols). For locale-aware case conversion,
use a dedicated i18n library.