@@ -24,6 +24,7 @@ use crate::tables::word::WordCat;
24
24
///
25
25
/// [`unicode_words`]: trait.UnicodeSegmentation.html#tymethod.unicode_words
26
26
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
27
+ #[ derive( Debug ) ]
27
28
pub struct UnicodeWords < ' a > {
28
29
inner : WordsIter < ' a > ,
29
30
}
@@ -68,6 +69,7 @@ impl<'a> DoubleEndedIterator for UnicodeWords<'a> {
68
69
///
69
70
/// [`unicode_word_indices`]: trait.UnicodeSegmentation.html#tymethod.unicode_word_indices
70
71
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
72
+ #[ derive( Debug ) ]
71
73
pub struct UnicodeWordIndices < ' a > {
72
74
inner : IndicesIter < ' a > ,
73
75
}
@@ -752,6 +754,7 @@ impl<'a> UWordBounds<'a> {
752
754
/// AHLetter is the same as ALetter, so we don't need to distinguish it.
753
755
///
754
756
/// Any other single ASCII byte is its own boundary (the default WB999).
757
+ #[ derive( Debug ) ]
755
758
pub struct AsciiWordBoundIter < ' a > {
756
759
rest : & ' a str ,
757
760
offset : usize ,
@@ -939,11 +942,13 @@ type AsciiIndicesIter<'a> =
939
942
type UnicodeIndicesIter < ' a > =
940
943
core:: iter:: Filter < UWordBoundIndices < ' a > , fn ( & ( usize , & ' a str ) ) ->bool > ;
941
944
945
+ #[ derive( Debug ) ]
942
946
enum WordsIter < ' a > {
943
947
Ascii ( AsciiWordsIter < ' a > ) ,
944
948
Unicode ( UnicodeWordsIter < ' a > ) ,
945
949
}
946
950
951
+ #[ derive( Debug ) ]
947
952
enum IndicesIter < ' a > {
948
953
Ascii ( AsciiIndicesIter < ' a > ) ,
949
954
Unicode ( UnicodeIndicesIter < ' a > ) ,