pgsuper

u/pgsuper@lemmy.world
0 posts · 2 comments

Recent posts

No posts.

Recent comments

on Rust Pro Tips (collection) · c/rust · 0 pts · 3y

Nice job! I’d add that the target of the Rustdoc link shortcuts can be customized, in case they are not autodetected or point to an undesired location, like so:

/// Use a [Tool]
///
/// [Tool]: lib::types::Tool

That will make the word Tool point to that type (note that the namespaces there - in lib::types::Tool - are relative to the current module / context, so you can use an imported name directly there too, for example).