Trait icu_segmenter::rule_segmenter::RuleBreakType
source · pub trait RuleBreakType<'l, 's> {
type IterAttr: Iterator<Item = (usize, Self::CharType)> + Clone + Debug;
type CharType: Copy + Into<u32> + Debug;
// Required methods
fn get_current_position_character_len(
iter: &RuleBreakIterator<'l, 's, Self>,
) -> usize;
fn handle_complex_language(
iter: &mut RuleBreakIterator<'l, 's, Self>,
left_codepoint: Self::CharType,
) -> Option<usize>;
}
Expand description
A trait allowing for RuleBreakIterator to be generalized to multiple string encoding methods and granularity such as grapheme cluster, word, etc.
Required Associated Types§
Required Methods§
fn get_current_position_character_len( iter: &RuleBreakIterator<'l, 's, Self>, ) -> usize
fn handle_complex_language( iter: &mut RuleBreakIterator<'l, 's, Self>, left_codepoint: Self::CharType, ) -> Option<usize>
Object Safety§
This trait is not object safe.