Skip to content

Implement Stream{Source, Sink} for T: Mem{Source,Sink} and add super trait bound #17

@LukasKalbertodt

Description

@LukasKalbertodt

A Mem{Source, Sink} is worth more than a Stream{SourceSink}, as in: can always do more. It would be really useful to:

  • Add the : Stream* super trait bound to Mem* traits
  • Add a default implementation of Stream* for all types T: Mem* (this implementation would likely be similar to PLYs impl: many function pointers)

This would make it possible to easily transfer data from one MemSource to a MemSink.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions