Rust Analyzer picks up on most functions, but doesn't catch str::from_utf8(). Would anyone understand why? I can save the code and build just fine.The IDE even gives me some hints as well.
from_utf8 is a function in the std::str module, it isn't an associated function on the str primitive type. You must have imported the std::str module, but rust-analyzer is assuming you're referring to the primitive. I would probably just refer to the std::str module by path to avoid confusion.
Here's a playground showing that you can't call from_utf8 on the str primitive. Rust-analyzer could probably merge the suggestions between the module and the primitive when the module is in scope, but that might also be confusing.