Skip to content

added 'Implementing the Read trait for strings' #516

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

Closed
wants to merge 1 commit into from

Conversation

Leopard2A5
Copy link
Contributor

No description provided.

@nasa42
Copy link
Member

nasa42 commented Sep 13, 2017

I think this is already possible with BufReader? Also see - rust-lang/rust#10564

@Leopard2A5
Copy link
Contributor Author

Hmm, the way I see it BufReader only wraps a Read, and since String doesn't implement Read...
But I see now that Read is implemented for &'a [u8], so if i just convert the String to that I can put it into a BufReader. Thanks for the links!

@Leopard2A5 Leopard2A5 closed this Sep 13, 2017
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