Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Using `rust-analyzer` to examine trait method signatures outside of IDE
Is 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?
MyCoolStruct::step_by
or MyCoolStruct::collect
with the same parameters they'd provide were they able to access the inner iterator and use its iterator directly.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