Currently rust-analyzer underlines method calls that takes &mut self
as first parameter. I want to take this idea a bit further and implement similar highlighting for methods that takes self
and returns Self
.
Motivation is to make consuming builder flavor to look similarily distinct as borrowing flavor. But also to make snippets like below less intricate by highlighting most important elements:
let number = number.min(get_max()).max(get_min());
Underdotted line would look good enough:
let number = number.min(get_max()).max(get_min());
''' '''
Let take this as minimalist version of my previous proposal.