Skip to content

Make std::io::Take<R> an instance of std::io::Seek when R:std::io::Seek #37214

Open
@ghost

Description

This would be particularly useful for reading file formats containing other formats.
Examples include:

  • OpenType font files, where CFF is an embedded format.
  • GRIB (format used by weather forecast organisms), containing grayscale JPEG to describe values.

(and probably many others)
In such cases, it would also be cool to have a "drain" method on std::io::Take, that would move the read cursor at the end of the Take.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ioArea: `std::io`, `std::fs`, `std::net` and `std::path`C-feature-acceptedCategory: A feature request that has been accepted pending implementation.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions