Y
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
atombender
2538 days ago
It's for dereferencing namespaces. "a::b::c" is analogous to a file system path /a/b/c.
link
AlleyTrotter
2538 days ago
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 """
link