Skip to content

read_all equivalent for Option #605

@elliotsayes

Description

@elliotsayes

read_all exists for Vec to read as long as there is remaining data, it would be nice if you could do something similar for Option, but reading up to one item (instead erroring if there is leftover data?). I'm aware you can assert the Vec length, but the ergonomics are not great.

Using the name read_all for Option isn't a great fit, perhaps read_opt?

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