Skip to content

"Generate Deref impl" should also offer generating a DerefMut impl #12266

Closed
@jonas-schievink

Description

@jonas-schievink
struct S {
    target$0: u8,
}

Here we're offering a "Generate Deref impl using target" assist. This currently only supports a Deref impl though, not a DerefMut impl that you might also want.

It should either open a popup where it asks the user (like the "generate getter/setter" assist), or an assist should be offered on the Deref impl to generate an identical (except with &mut instead of &) DerefMut impl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-assistsC-featureCategory: feature requestS-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions