@@ -113,8 +113,8 @@ pub trait UnicodeNormalization<I: Iterator<Item = char>> {
113
113
/// (compatibility decomposition followed by canonical composition).
114
114
fn nfkc ( self ) -> Recompositions < I > ;
115
115
116
- /// A transformation which replaces CJK Compatibility Ideograph codepoints
117
- /// with normal forms using Standardized Variation Sequences. This is not
116
+ /// A transformation which replaces [ CJK Compatibility Ideograph] codepoints
117
+ /// with normal forms using [ Standardized Variation Sequences] . This is not
118
118
/// part of the canonical or compatibility decomposition algorithms, but
119
119
/// performing it before those algorithms produces normalized output which
120
120
/// better preserves the intent of the original text.
@@ -123,10 +123,15 @@ pub trait UnicodeNormalization<I: Iterator<Item = char>> {
123
123
/// may not immediately help text display as intended, but they at
124
124
/// least preserve the information in a standardized form, giving
125
125
/// implementations the option to recognize them.
126
+ ///
127
+ /// [CJK Compatibility Ideograph]: https://www.unicode.org/glossary/#compatibility_ideograph
128
+ /// [Standardized Variation Sequences]: https://www.unicode.org/glossary/#standardized_variation_sequence
126
129
fn cjk_compat_variants ( self ) -> Replacements < I > ;
127
130
128
131
/// An Iterator over the string with Conjoining Grapheme Joiner characters
129
- /// inserted according to the Stream-Safe Text Process (UAX15-D4)
132
+ /// inserted according to the Stream-Safe Text Process ([UAX15-D4]).
133
+ ///
134
+ /// [UAX15-D4]: https://www.unicode.org/reports/tr15/#UAX15-D4
130
135
fn stream_safe ( self ) -> StreamSafe < I > ;
131
136
}
132
137
@@ -153,7 +158,7 @@ impl<'a> UnicodeNormalization<Chars<'a>> for &'a str {
153
158
154
159
#[ inline]
155
160
fn cjk_compat_variants ( self ) -> Replacements < Chars < ' a > > {
156
- replace :: new_cjk_compat_variants ( self . chars ( ) )
161
+ Replacements :: new_cjk_compat_variants ( self . chars ( ) )
157
162
}
158
163
159
164
#[ inline]
@@ -185,7 +190,7 @@ impl UnicodeNormalization<option::IntoIter<char>> for char {
185
190
186
191
#[ inline]
187
192
fn cjk_compat_variants ( self ) -> Replacements < option:: IntoIter < char > > {
188
- replace :: new_cjk_compat_variants ( Some ( self ) . into_iter ( ) )
193
+ Replacements :: new_cjk_compat_variants ( Some ( self ) . into_iter ( ) )
189
194
}
190
195
191
196
#[ inline]
@@ -217,7 +222,7 @@ impl<I: Iterator<Item = char>> UnicodeNormalization<I> for I {
217
222
218
223
#[ inline]
219
224
fn cjk_compat_variants ( self ) -> Replacements < I > {
220
- replace :: new_cjk_compat_variants ( self )
225
+ Replacements :: new_cjk_compat_variants ( self )
221
226
}
222
227
223
228
#[ inline]
0 commit comments