@@ -691,6 +691,7 @@ impl Regex {
691691///
692692/// `'r` is the lifetime of the compiled regular expression and `'t` is the
693693/// lifetime of the matched byte string.
694+ #[ derive( Debug ) ]
694695pub struct Matches < ' r , ' t > ( re_trait:: Matches < ' t , ExecNoSync < ' r > > ) ;
695696
696697impl < ' r , ' t > Iterator for Matches < ' r , ' t > {
@@ -711,6 +712,7 @@ impl<'r, 't> FusedIterator for Matches<'r, 't> {}
711712///
712713/// `'r` is the lifetime of the compiled regular expression and `'t` is the
713714/// lifetime of the matched byte string.
715+ #[ derive( Debug ) ]
714716pub struct CaptureMatches < ' r , ' t > (
715717 re_trait:: CaptureMatches < ' t , ExecNoSync < ' r > > ,
716718) ;
@@ -733,6 +735,7 @@ impl<'r, 't> FusedIterator for CaptureMatches<'r, 't> {}
733735///
734736/// `'r` is the lifetime of the compiled regular expression and `'t` is the
735737/// lifetime of the byte string being split.
738+ #[ derive( Debug ) ]
736739pub struct Split < ' r , ' t > {
737740 finder : Matches < ' r , ' t > ,
738741 last : usize ,
@@ -770,6 +773,7 @@ impl<'r, 't> FusedIterator for Split<'r, 't> {}
770773///
771774/// `'r` is the lifetime of the compiled regular expression and `'t` is the
772775/// lifetime of the byte string being split.
776+ #[ derive( Debug ) ]
773777pub struct SplitN < ' r , ' t > {
774778 splits : Split < ' r , ' t > ,
775779 n : usize ,
@@ -811,6 +815,7 @@ impl<'r, 't> FusedIterator for SplitN<'r, 't> {}
811815/// whole matched region) is always unnamed.
812816///
813817/// `'r` is the lifetime of the compiled regular expression.
818+ #[ derive( Clone , Debug ) ]
814819pub struct CaptureNames < ' r > ( :: std:: slice:: Iter < ' r , Option < String > > ) ;
815820
816821impl < ' r > Iterator for CaptureNames < ' r > {
@@ -1078,7 +1083,7 @@ impl<'t, 'i> Index<&'i str> for Captures<'t> {
10781083///
10791084/// The lifetime `'c` corresponds to the lifetime of the `Captures` value, and
10801085/// the lifetime `'t` corresponds to the originally matched text.
1081- #[ derive( Clone ) ]
1086+ #[ derive( Clone , Debug ) ]
10821087pub struct SubCaptureMatches < ' c , ' t : ' c > {
10831088 caps : & ' c Captures < ' t > ,
10841089 it : SubCapturesPosIter < ' c > ,
@@ -1196,6 +1201,7 @@ where
11961201/// and performant (since capture groups don't need to be found).
11971202///
11981203/// `'t` is the lifetime of the literal text.
1204+ #[ derive( Clone , Debug ) ]
11991205pub struct NoExpand < ' t > ( pub & ' t [ u8 ] ) ;
12001206
12011207impl < ' t > Replacer for NoExpand < ' t > {
0 commit comments