Skip to content

EncodeLike<Vec<T>> should be implemented for Iterators with wrapping structure #169

Open
@gui1117

Description

@gui1117

Similarly to Ref structure we could introduce

struct Iter<I: Iterator<T>, T: Encode>(&I, Phantom<T>)

or maybe

struct Iter<I: Iterator<T>, T: EncodeLike<U>, U: Encode>(&I, Phantom<(T, U)>)

And then implement EncodeLike<Vec<U>> for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions