Skip to content

Commit fef38e4

Browse files
committed
Merge pull request #133 from flying-sheep/exposed-captures
Reexport CaptureNames
2 parents 78d983e + 502a633 commit fef38e4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ extern crate regex_syntax as syntax;
411411

412412
pub use re::{
413413
Regex, Error, Captures, SubCaptures, SubCapturesPos, SubCapturesNamed,
414-
FindCaptures, FindMatches,
414+
CaptureNames, FindCaptures, FindMatches,
415415
Replacer, NoExpand, RegexSplits, RegexSplitsN,
416416
quote, is_match,
417417
};

src/re.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,9 @@ impl Regex {
662662
///
663663
/// `'r` is the lifetime of the compiled expression.
664664
pub enum CaptureNames<'r> {
665+
#[doc(hidden)]
665666
Native(::std::slice::Iter<'r, Option<&'static str>>),
667+
#[doc(hidden)]
666668
Dynamic(::std::slice::Iter<'r, Option<String>>)
667669
}
668670

0 commit comments

Comments
 (0)