@@ -691,6 +691,7 @@ impl Regex {
691
691
///
692
692
/// `'r` is the lifetime of the compiled regular expression and `'t` is the
693
693
/// lifetime of the matched byte string.
694
+ #[ derive( Debug ) ]
694
695
pub struct Matches < ' r , ' t > ( re_trait:: Matches < ' t , ExecNoSync < ' r > > ) ;
695
696
696
697
impl < ' r , ' t > Iterator for Matches < ' r , ' t > {
@@ -711,6 +712,7 @@ impl<'r, 't> FusedIterator for Matches<'r, 't> {}
711
712
///
712
713
/// `'r` is the lifetime of the compiled regular expression and `'t` is the
713
714
/// lifetime of the matched byte string.
715
+ #[ derive( Debug ) ]
714
716
pub struct CaptureMatches < ' r , ' t > (
715
717
re_trait:: CaptureMatches < ' t , ExecNoSync < ' r > > ,
716
718
) ;
@@ -733,6 +735,7 @@ impl<'r, 't> FusedIterator for CaptureMatches<'r, 't> {}
733
735
///
734
736
/// `'r` is the lifetime of the compiled regular expression and `'t` is the
735
737
/// lifetime of the byte string being split.
738
+ #[ derive( Debug ) ]
736
739
pub struct Split < ' r , ' t > {
737
740
finder : Matches < ' r , ' t > ,
738
741
last : usize ,
@@ -770,6 +773,7 @@ impl<'r, 't> FusedIterator for Split<'r, 't> {}
770
773
///
771
774
/// `'r` is the lifetime of the compiled regular expression and `'t` is the
772
775
/// lifetime of the byte string being split.
776
+ #[ derive( Debug ) ]
773
777
pub struct SplitN < ' r , ' t > {
774
778
splits : Split < ' r , ' t > ,
775
779
n : usize ,
@@ -811,6 +815,7 @@ impl<'r, 't> FusedIterator for SplitN<'r, 't> {}
811
815
/// whole matched region) is always unnamed.
812
816
///
813
817
/// `'r` is the lifetime of the compiled regular expression.
818
+ #[ derive( Clone , Debug ) ]
814
819
pub struct CaptureNames < ' r > ( :: std:: slice:: Iter < ' r , Option < String > > ) ;
815
820
816
821
impl < ' r > Iterator for CaptureNames < ' r > {
@@ -1078,7 +1083,7 @@ impl<'t, 'i> Index<&'i str> for Captures<'t> {
1078
1083
///
1079
1084
/// The lifetime `'c` corresponds to the lifetime of the `Captures` value, and
1080
1085
/// the lifetime `'t` corresponds to the originally matched text.
1081
- #[ derive( Clone ) ]
1086
+ #[ derive( Clone , Debug ) ]
1082
1087
pub struct SubCaptureMatches < ' c , ' t : ' c > {
1083
1088
caps : & ' c Captures < ' t > ,
1084
1089
it : SubCapturesPosIter < ' c > ,
@@ -1196,6 +1201,7 @@ where
1196
1201
/// and performant (since capture groups don't need to be found).
1197
1202
///
1198
1203
/// `'t` is the lifetime of the literal text.
1204
+ #[ derive( Clone , Debug ) ]
1199
1205
pub struct NoExpand < ' t > ( pub & ' t [ u8 ] ) ;
1200
1206
1201
1207
impl < ' t > Replacer for NoExpand < ' t > {
0 commit comments