@@ -18,7 +18,7 @@ mod fwd {
18
18
19
19
// Describe a parsed part of source string as described in this table:
20
20
// https://unicode.org/reports/tr29/#Default_Sentence_Boundaries
21
- #[ derive( Clone , Copy , PartialEq , Eq ) ]
21
+ #[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
22
22
enum StatePart {
23
23
Sot ,
24
24
Eot ,
@@ -33,7 +33,7 @@ mod fwd {
33
33
STerm ,
34
34
}
35
35
36
- #[ derive( Clone , PartialEq , Eq ) ]
36
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
37
37
struct SentenceBreaksState ( pub [ StatePart ; 4 ] ) ;
38
38
39
39
const INITIAL_STATE : SentenceBreaksState = SentenceBreaksState ( [
@@ -43,7 +43,7 @@ mod fwd {
43
43
StatePart :: Sot ,
44
44
] ) ;
45
45
46
- #[ derive( Clone ) ]
46
+ #[ derive( Debug , Clone ) ]
47
47
pub struct SentenceBreaks < ' a > {
48
48
pub string : & ' a str ,
49
49
pos : usize ,
@@ -296,7 +296,7 @@ mod fwd {
296
296
///
297
297
/// [`unicode_sentences`]: trait.UnicodeSegmentation.html#tymethod.unicode_sentences
298
298
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
299
- #[ derive( Clone ) ]
299
+ #[ derive( Debug , Clone ) ]
300
300
pub struct UnicodeSentences < ' a > {
301
301
inner : Filter < USentenceBounds < ' a > , fn ( & & str ) -> bool > ,
302
302
}
@@ -309,7 +309,7 @@ pub struct UnicodeSentences<'a> {
309
309
///
310
310
/// [`split_sentence_bounds`]: trait.UnicodeSegmentation.html#tymethod.split_sentence_bounds
311
311
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
312
- #[ derive( Clone ) ]
312
+ #[ derive( Debug , Clone ) ]
313
313
pub struct USentenceBounds < ' a > {
314
314
iter : fwd:: SentenceBreaks < ' a > ,
315
315
sentence_start : Option < usize > ,
@@ -322,7 +322,7 @@ pub struct USentenceBounds<'a> {
322
322
///
323
323
/// [`split_sentence_bound_indices`]: trait.UnicodeSegmentation.html#tymethod.split_sentence_bound_indices
324
324
/// [`UnicodeSegmentation`]: trait.UnicodeSegmentation.html
325
- #[ derive( Clone ) ]
325
+ #[ derive( Debug , Clone ) ]
326
326
pub struct USentenceBoundIndices < ' a > {
327
327
start_offset : usize ,
328
328
iter : USentenceBounds < ' a > ,
0 commit comments