Skip to content

Document more precisely the rules for selecting closure traits. #219

Closed
@alercah

Description

@alercah

Currently, the reference is vague about when a closure is Fn or FnMut (all closures are FnOnce). Currently, the closures page merely says that the compiler will work it out, but we need to be more specific about precisely what the semantics are.

It may be worth rewriting this page in general to be more authoritative as well.

Metadata

Metadata

Assignees

Labels

EnhancementImprovement in a non-prose section of the bookNew ContentMissing features or aspects of language not currently documented.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions