I'm struggling to wrap my head around these,
use
declarationA use declaration creates one or more local name bindings synonymous with some other path. Usually, a
use
declaration is used to shorten the path required to refer to a module item. These declarations may appear in modules and blocks, usually at the top.
And,
mod
itemA module item is a module, surrounded in braces, named, and prefixed with the keyword
mod
. A module item introduces a new, named module into the tree of modules making up a crate. Modules can nest arbitrarily.
Basically, when I go to layout my module, I believe I know how I want it layed out but I get confused about how these two things should be layered and what they do. I would think only one of the two would include code?