Skip to content
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

Add a few TryFrom impls #112

Closed
wants to merge 1 commit into from

Conversation

TethysSvensson
Copy link
Contributor

@TethysSvensson TethysSvensson commented Jul 10, 2022

I'm trying to add support for using bstrs in planus (see planus-org/planus#110).

For the to work as outlined in the issue, I to make some of the generated code work the same for str/BStr and for String/BString. The best way I have found to do this is to add these TryFrom impls to bstr.

Copy link
Owner

@BurntSushi BurntSushi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah these seem very sensible. Thanks!

BurntSushi pushed a commit that referenced this pull request Jul 11, 2022
The only reason these didn't exist is probably because I built bstr
before (or too close to) when TryFrom was stabilized. But TryFrom has
been available for quite some time, so it's good sense to add these
impls now.

Closes #112
BurntSushi pushed a commit that referenced this pull request Jul 11, 2022
The only reason these didn't exist is probably because I built bstr
before (or too close to) when TryFrom was stabilized. But TryFrom has
been available for quite some time, so it's good sense to add these
impls now.

Closes #112
BurntSushi pushed a commit that referenced this pull request Jul 11, 2022
The only reason these didn't exist is probably because I built bstr
before (or too close to) when TryFrom was stabilized. But TryFrom has
been available for quite some time, so it's good sense to add these
impls now.

Closes #112
@TethysSvensson TethysSvensson deleted the try-from branch July 11, 2022 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants