You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the full match is a very common operation, and although the documetation for Regex::get says that getting the result at index 0 will always return Some, that property isn't reflected in the type system. And adding a method like this would expose that guarantee through the type of the public API.
The text was updated successfully, but these errors were encountered:
I'm not sure full_match is the right name though. Hmmm. I'm not a huge fan of get_match either in this context. Probably match would be ideally, except for the obvious drawback that match is a Rust keyword.
Describe your feature request
Add a method to
regex::Captures
that is equvalent to (or even just this implementation):Getting the full match is a very common operation, and although the documetation for
Regex::get
says that getting the result at index 0 will always returnSome
, that property isn't reflected in the type system. And adding a method like this would expose that guarantee through the type of the public API.The text was updated successfully, but these errors were encountered: