Hide trait function when trait not satisfied
⚓ Rust 📅 2025-05-26 👤 surdeus 👁️ 11Hi,
The issue:
I would like Vscode/rust-analyzer not to show some trait functions in auto complete if the bounds are not satisfied.
I mean, for the type B in the playground, ra still show get_value_from_key when it should only show get_value_from_key2 and vice versa for A when auto-complete popup is displayed.
(This is a very simplified example, the trait is much more complex than this with dozen of functions with varying constraints)
Is there a way to make that happen?
Thanks!
1 post - 1 participant
🏷️ rust_feed