Skip to content

RFC: Implement Clone on |A|: 'static -> R &'static fn()` #8025

Closed
@bluss

Description

@bluss

Some closures are shallow-clonable and should implement .clone().

One example is a &'static fn(A) -> R autoborrowed from an extern fn. If it's clonable then that could make an iterator adaptor like MapIterator clonable in some cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.P-lowLow priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions