pub trait CustomTransliterator: Debug {
    // Required method
    fn transliterate(&self, input: &str, range: Range<usize>) -> String;
}
Expand description

A type that supports transliteration. Used for overrides in Transliterator - see Transliterator::try_new_with_override_unstable.

Required Methods§

source

fn transliterate(&self, input: &str, range: Range<usize>) -> String

Transliterates the portion of the input string specified by the byte indices in the range.

The returned String must just be the transliteration of input[range]. The rest is there for context, if necessary.

Implementors§