Skip to content

Make it possible to map listeners to a different type #4

@cramertj

Description

@cramertj

Equivalent to Elm's map. I've been working on it in the mappable-listeners branch, but it's extremely messy and requires a bunch of extra traits. A much simpler solution would be possible with ATCs on types (not just lifetimes), as then DomNode, DomNodes, Listener, and Listeners could all implement some sort of MessageFunctor trait.

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