Hacker News new | ask | show | jobs
by AlleyTrotter 2538 days ago
so the " :: ' has no verbal meaning, it's just a way of linking traits, libraries, functions,or crates? Not easy to explain
2 comments

It's for dereferencing namespaces. "a::b::c" is analogous to a file system path /a/b/c.
I found what I was looking for in the appendix

B-3 Path related syntax """ ::path Path relative to the crate root (i.e., an explicitly absolute """