Skip to content

Commit f76a997

Browse files
committed
readd Debug derive
1 parent 5a09f28 commit f76a997

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/word.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)]
2728
pub 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)]
7173
pub 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)]
755758
pub struct AsciiWordBoundIter<'a> {
756759
rest: &'a str,
757760
offset: usize,
@@ -939,11 +942,13 @@ type AsciiIndicesIter<'a> =
939942
type UnicodeIndicesIter<'a> =
940943
core::iter::Filter<UWordBoundIndices<'a>, fn(&(usize, &'a str)) -> bool>;
941944

945+
#[derive(Debug)]
942946
enum WordsIter<'a> {
943947
Ascii(AsciiWordsIter<'a>),
944948
Unicode(UnicodeWordsIter<'a>),
945949
}
946950

951+
#[derive(Debug)]
947952
enum IndicesIter<'a> {
948953
Ascii(AsciiIndicesIter<'a>),
949954
Unicode(UnicodeIndicesIter<'a>),

0 commit comments

Comments
 (0)