@NfNitLoop on Twitter: Post

@NfNitLoop on Twitter

@NfNitLoop ("Cody C. #BLM") wrote:

This is especially helpful with #Rust when you're using methods that are defined on traits implemented for a type you're working with.

"Which trait implements this method? What's its import path?" is sometimes a bit of a distraction to code flow. Let the IDE find & import. ❤️

with quote tweet:

@rustadventure replied to a tweet by @rustadventure:

Rust Analyzer will let you know in-editor when you haven't brought a symbol into scope using a red squiggle.

Then you can use Cmd+. to trigger the "import" helper, which will either auto-insert the appropriate use item or if there are multiple possibilities, let you choose.