Skip to content

Mutable accessor for Copy single-element Cell-like container #44

@dtolnay

Description

@dtolnay

The guideline says:

Single-element containers where the element is Copy (e.g. Cell-like containers) should instead return the value directly, and not implement a mutable accessor.

And yet: Cell::get_mut

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions