rust-analyzer icon indicating copy to clipboard operation
rust-analyzer copied to clipboard

ide-assists: Clarify that generated setters receive `&mut self`

Open 9999years opened this issue 4 months ago • 1 comments

This is different from "builder setters", which typically receive an owned self and return Self as well.

I'd like to implement generation for fn with_foo(mut self, foo: T) -> Self methods in the future, but first we should clarify what rust-analyzer means by "setter method"s.

9999years avatar Sep 04 '25 02:09 9999years

I don't see the point in this PR. A setter is usually a normal setter, a builder is not called a setter.

ChayimFriedman2 avatar Dec 11 '25 01:12 ChayimFriedman2