icu_segmenter::complex::dictionary

Trait DictionaryType

Source
trait DictionaryType<'l, 's> {
    type IterAttr: Iterator<Item = (usize, Self::CharType)> + Clone;
    type CharType: Copy + Into<u32>;

    // Required methods
    fn to_char(c: Self::CharType) -> char;
    fn char_len(c: Self::CharType) -> usize;
}
Expand description

A trait for dictionary based iterator

Required Associated Types§

Source

type IterAttr: Iterator<Item = (usize, Self::CharType)> + Clone

The iterator over characters.

Source

type CharType: Copy + Into<u32>

The character type.

Required Methods§

Source

fn to_char(c: Self::CharType) -> char

Source

fn char_len(c: Self::CharType) -> usize

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<'l, 's> DictionaryType<'l, 's> for char

Source§

impl<'l, 's> DictionaryType<'l, 's> for u32

Implementors§