Using `rust-analyzer` to examine trait method signatures outside of IDE
⚓ Rust 📅 2025-08-17 👤 surdeus 👁️ 13Is there a way to use rust-analyzer to iterate over the method signatures of a trait outside the context of an IDE?
More info:
Given a procedural macro that produces some type with a non-pub interior iterator, is it possible to iterate over the signatures of the core::iter::Iterator provided methods so that I can generate convenience methods for my struct with the same names?
- Ideally, the user should be able to call something like
MyCoolStruct::step_byorMyCoolStruct::collectwith the same parameters they'd provide were they able to access the inner iterator and use its iterator directly. - Unfortunately, I cannot provide access to the inner iterator while maintaining the guarantees I'd like to enforce with this library.
If anyone knows where I could look in the ra documentation, it would be helpful, but I thought I'd ask if anyone has encountered something similar. Thank you.
2 posts - 2 participants
🏷️ Rust_feed