Skip to main content

Decasify

Trait Decasify 

Source
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§

Source

fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source

fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source

fn to_lowercase(&self, locale: impl Into<Locale>) -> String

Source

fn to_uppercase(&self, locale: impl Into<Locale>) -> String

Source

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.

Implementations on Foreign Types§

Source§

impl Decasify for &str

Source§

fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_lowercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_uppercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_sentencecase(&self, locale: impl Into<Locale>) -> String

Source§

impl Decasify for &String

Source§

fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_lowercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_uppercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_sentencecase(&self, locale: impl Into<Locale>) -> String

Source§

impl Decasify for str

Source§

fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_lowercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_uppercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_sentencecase(&self, locale: impl Into<Locale>) -> String

Source§

impl Decasify for String

Source§

fn to_case( &self, case: impl Into<Case>, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_titlecase( &self, locale: impl Into<Locale>, style: impl Into<StyleGuide>, ) -> String

Source§

fn to_lowercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_uppercase(&self, locale: impl Into<Locale>) -> String

Source§

fn to_sentencecase(&self, locale: impl Into<Locale>) -> String

Implementors§