Trait rust_i18n_support::MinifyKey

source ·
pub trait MinifyKey<'a> {
    // Required method
    fn minify_key(
        &'a self,
        len: usize,
        prefix: &str,
        threshold: usize,
    ) -> Cow<'a, str>;
}
Expand description

A trait for generating translation key from a value.

Required Methods§

source

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

Generate translation key from a value.

Implementations on Foreign Types§

source§

impl<'a> MinifyKey<'a> for &Cow<'a, str>

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

source§

impl<'a> MinifyKey<'a> for &str

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

source§

impl<'a> MinifyKey<'a> for &String

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

source§

impl<'a> MinifyKey<'a> for Cow<'a, str>

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

source§

impl<'a> MinifyKey<'a> for str

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

source§

impl<'a> MinifyKey<'a> for String

source§

fn minify_key( &'a self, len: usize, prefix: &str, threshold: usize, ) -> Cow<'a, str>

Implementors§