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