Skip to main content

RuleBreakType

Trait RuleBreakType 

Source
pub trait RuleBreakType: Sealed + Sized {
    type IterAttr<'s>: Iterator<Item = (usize, Self::CharType)> + Clone + Debug;
    type CharType: Copy + Into<u32> + Debug;
}
Expand description

A trait allowing for RuleBreakIterator to be generalized to multiple string encoding methods and granularity such as grapheme cluster, word, etc.

๐Ÿšซ This trait is sealed; it cannot be implemented by user code. If an API requests an item that implements this trait, please consider using a type from the implementors listed below.

Required Associated Typesยง

Source

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

The iterator over characters.

Source

type CharType: Copy + Into<u32> + Debug

The character type.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementorsยง