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

Reference impls #1

Open
nrc opened this issue Dec 31, 2021 · 0 comments
Open

Reference impls #1

nrc opened this issue Dec 31, 2021 · 0 comments

Comments

@nrc
Copy link
Owner

nrc commented Dec 31, 2021

Add implementations of Read for &Reader, etc., following File in std. This is not straightforward because the std trait functions require &mut self, so we either need to keep references to the sys impls (which take &self), if that is possible, or use a RefCell (though I think that would not support simultaneous reads) or some other hack.

Stdio impls and Read for strings should be much easier.

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

No branches or pull requests

1 participant