Trait icu_segmenter::complex::dictionary::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

Object Safety§

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§