@@ -18,7 +18,7 @@ mod fwd {
1818
1919 // Describe a parsed part of source string as described in this table:
2020 // https://unicode.org/reports/tr29/#Default_Sentence_Boundaries
21- #[ derive( Clone , Copy , PartialEq , Eq ) ]
21+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
2222 enum StatePart {
2323 Sot ,
2424 Eot ,
@@ -33,7 +33,7 @@ mod fwd {
3333 STerm ,
3434 }
3535
36- #[ derive( Clone , PartialEq , Eq ) ]
36+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
3737 struct SentenceBreaksState ( pub [ StatePart ; 4 ] ) ;
3838
3939 const INITIAL_STATE : SentenceBreaksState = SentenceBreaksState ( [
@@ -43,7 +43,7 @@ mod fwd {
4343 StatePart :: Sot ,
4444 ] ) ;
4545
46- #[ derive( Clone ) ]
46+ #[ derive( Debug , Clone ) ]
4747 pub struct SentenceBreaks < ' a > {
4848 pub string : & ' a str ,
4949 pos : usize ,
@@ -296,7 +296,7 @@ mod fwd {
296296///
297297/// [`unicode_sentences`]: trait.UnicodeSegmentation.html#tymethod.unicode_sentences
298298/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
299- #[ derive( Clone ) ]
299+ #[ derive( Debug , Clone ) ]
300300pub struct UnicodeSentences < ' a > {
301301 inner : Filter < USentenceBounds < ' a > , fn ( & & str ) -> bool > ,
302302}
@@ -309,7 +309,7 @@ pub struct UnicodeSentences<'a> {
309309///
310310/// [`split_sentence_bounds`]: trait.UnicodeSegmentation.html#tymethod.split_sentence_bounds
311311/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
312- #[ derive( Clone ) ]
312+ #[ derive( Debug , Clone ) ]
313313pub struct USentenceBounds < ' a > {
314314 iter : fwd:: SentenceBreaks < ' a > ,
315315 sentence_start : Option < usize > ,
@@ -322,7 +322,7 @@ pub struct USentenceBounds<'a> {
322322///
323323/// [`split_sentence_bound_indices`]: trait.UnicodeSegmentation.html#tymethod.split_sentence_bound_indices
324324/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
325- #[ derive( Clone ) ]
325+ #[ derive( Debug , Clone ) ]
326326pub struct USentenceBoundIndices < ' a > {
327327 start_offset : usize ,
328328 iter : USentenceBounds < ' a > ,
0 commit comments