-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: Add impl TryFrom<Arc<str>> for Regex
#1257
Comments
Well, it certainly can't be I don't see why there should be an
The internal representation should have absolutely nothing to do with this. If you're mentioning this because you think it makes the conversion cheaper, then that is almost certainly not true in any meaningful sense. |
The use case for |
That isn't a compelling enough motivation on its own IMO. That impl would require |
Got it, yes, the internal may change in the future. |
I don't get why you closed this? I did say that adding |
I closed this because |
impl From<Regex> for Arc<str>
impl TryFrom<Arc<str>> for Regex
Ah I see. I think a misread that your request wanted a |
Hi, thanks for the amazing crate!
As the internal pattern is an
Arc<str>
, is it possible to addimpl From<Regex> for Arc<str>
andimpl From<&Regex> for Arc<str>
implementation? It is useful when doing conversions between types.The text was updated successfully, but these errors were encountered: