@@ -24,6 +24,7 @@ use crate::tables::word::WordCat;
2424///
2525/// [`unicode_words`]: trait.UnicodeSegmentation.html#tymethod.unicode_words
2626/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
27+ #[ derive( Debug ) ]
2728pub struct UnicodeWords < ' a > {
2829 inner : WordsIter < ' a > ,
2930}
@@ -68,6 +69,7 @@ impl<'a> DoubleEndedIterator for UnicodeWords<'a> {
6869///
6970/// [`unicode_word_indices`]: trait.UnicodeSegmentation.html#tymethod.unicode_word_indices
7071/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
72+ #[ derive( Debug ) ]
7173pub struct UnicodeWordIndices < ' a > {
7274 inner : IndicesIter < ' a > ,
7375}
@@ -752,6 +754,7 @@ impl<'a> UWordBounds<'a> {
752754/// AHLetter is the same as ALetter, so we don't need to distinguish it.
753755///
754756/// Any other single ASCII byte is its own boundary (the default WB999).
757+ #[ derive( Debug ) ]
755758pub struct AsciiWordBoundIter < ' a > {
756759 rest : & ' a str ,
757760 offset : usize ,
@@ -939,11 +942,13 @@ type AsciiIndicesIter<'a> =
939942type UnicodeIndicesIter < ' a > =
940943 core:: iter:: Filter < UWordBoundIndices < ' a > , fn ( & ( usize , & ' a str ) ) -> bool > ;
941944
945+ #[ derive( Debug ) ]
942946enum WordsIter < ' a > {
943947 Ascii ( AsciiWordsIter < ' a > ) ,
944948 Unicode ( UnicodeWordsIter < ' a > ) ,
945949}
946950
951+ #[ derive( Debug ) ]
947952enum IndicesIter < ' a > {
948953 Ascii ( AsciiIndicesIter < ' a > ) ,
949954 Unicode ( UnicodeIndicesIter < ' a > ) ,
0 commit comments