Trait unicode_normalization::UnicodeNormalization
[−]
[src]
pub trait UnicodeNormalization<I: Iterator<Item = char>> { fn nfd(self) -> Decompositions<I>; fn nfkd(self) -> Decompositions<I>; fn nfc(self) -> Recompositions<I>; fn nfkc(self) -> Recompositions<I>; fn stream_safe(self) -> StreamSafe<I>; }
Methods for iterating over strings while applying Unicode normalizations as described in Unicode Standard Annex #15.
Required Methods
ⓘImportant traits for Decompositions<I>
fn nfd(self) -> Decompositions<I>
Returns an iterator over the string in Unicode Normalization Form D (canonical decomposition).
ⓘImportant traits for Decompositions<I>
fn nfkd(self) -> Decompositions<I>
Returns an iterator over the string in Unicode Normalization Form KD (compatibility decomposition).
ⓘImportant traits for Recompositions<I>
fn nfc(self) -> Recompositions<I>
An Iterator over the string in Unicode Normalization Form C (canonical decomposition followed by canonical composition).
ⓘImportant traits for Recompositions<I>
fn nfkc(self) -> Recompositions<I>
An Iterator over the string in Unicode Normalization Form KC (compatibility decomposition followed by canonical composition).
ⓘImportant traits for StreamSafe<I>
fn stream_safe(self) -> StreamSafe<I>
An Iterator over the string with Conjoining Grapheme Joiner characters inserted according to the Stream-Safe Text Process (UAX15-D4)
Implementations on Foreign Types
impl<'a> UnicodeNormalization<Chars<'a>> for &'a str
[src]
ⓘImportant traits for Decompositions<I>fn nfd(self) -> Decompositions<Chars<'a>>
[src]
ⓘImportant traits for Decompositions<I>
ⓘImportant traits for Decompositions<I>fn nfkd(self) -> Decompositions<Chars<'a>>
[src]
ⓘImportant traits for Decompositions<I>
ⓘImportant traits for Recompositions<I>fn nfc(self) -> Recompositions<Chars<'a>>
[src]
ⓘImportant traits for Recompositions<I>
ⓘImportant traits for Recompositions<I>fn nfkc(self) -> Recompositions<Chars<'a>>
[src]
ⓘImportant traits for Recompositions<I>
ⓘImportant traits for StreamSafe<I>fn stream_safe(self) -> StreamSafe<Chars<'a>>
[src]
ⓘImportant traits for StreamSafe<I>