I’m looking forward to it.
The way elements created internally in Rust isn’t something that changes regularly (you can try git blame
and see when those line have been changed the last time). So recreating them manually once per element basically will be a one-time investment. Moreover, making this somehow automated isn’t a trivial task, so I think it is safe to say that this is out of the question for near future (or in general, IDK, I’m not the creator). Also, since normally the function/element related code is documented right above the Rust struct in the doc string, it would be pretty easy to update the show rule code example (for a specific element that had its internal representation changed).
I answered a similar/same question in How can I document my own user defined functions/variables?. You should look into tinymist for such feature (for now). Also a small note that quote
is already a defined element. See How can I access shadowed functions? - #3 by Eric.
Yes. IMO, no.