Skip to content

use GAT to redesign trait StreamΒ #316

@Sherlock-Holo

Description

@Sherlock-Holo

for now Stream can't write something like
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b45f2bc81394150cdae15d8a1cbcdecd

which want to return a reference type,

however, with GAT help
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=b63d58ebe8d9ffa70225d5fc23fb629d

we can return the reference type

consider Stream still not in the std lib, maybe we still have chance to redesign it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions