pub trait Decasify {
// Required methods
fn to_case(
&self,
case: impl Into<Case>,
locale: impl Into<Locale>,
style: impl Into<StyleGuide>,
) -> String;
fn to_titlecase(
&self,
locale: impl Into<Locale>,
style: impl Into<StyleGuide>,
) -> String;
fn to_lowercase(&self, locale: impl Into<Locale>) -> String;
fn to_uppercase(&self, locale: impl Into<Locale>) -> String;
fn to_sentencecase(&self, locale: impl Into<Locale>) -> String;
}Available on crate feature
unstable-trait only.Required Methods§
fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String
fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String
fn to_lowercase(&self, locale: impl Into<Locale>) -> String
fn to_uppercase(&self, locale: impl Into<Locale>) -> String
fn to_sentencecase(&self, locale: impl Into<Locale>) -> String
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.