Skip to content

Reference impls #1

@nrc

Description

@nrc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions