Skip to content

Remove RcMut and Cell and introduce Mutable #9351

Closed
@bluss

Description

@bluss

Introduce Mutable<T> to implement a dynamic mutable slot, with dynamic borrow check, in once place. Obsolete Cell<T> and RcMut<T> (and what about @mut T? See #7140)

For Mutable<T> use an implementation with wrapped borrowed pointers to allow for both closured-bracketed and "roaming" borrowed pointers.

A working test is https://gist.github.com/anonymous/f007d9b907509c03c17f

Updated, WIP: https://github.com/blake2-ppc/rust/compare/mutable-t

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions