this post was submitted on 26 Jul 2023
37 points (97.4% liked)

Rust Programming

8172 readers
20 users here now

founded 5 years ago
MODERATORS
 

Whenever I encounter an interesting Rust programming technique, I add it to this blog post. I've amassed a bit of a collection. Hopefully someone finds it interesting and useful!

top 3 comments
sorted by: hot top controversial new old
[–] Sibbo@sopuli.xyz 4 points 1 year ago

These are actually nice, thanks!

[–] ParanoidAndr0id@kbin.social 1 points 1 year ago

Bookmarked :)

[–] pgsuper@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

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).

load more comments
view more: next ›