Sign in
rust
/
rust-lang
/
rust-by-example
/
refs/heads/macros
/
.
/
examples
/
mod
/
visibility
/
input.md
blob: b334d7625e90bc5f44e5c9f611da8ee33ce8e6c6 [
file
] [
log
] [
blame
] [
view
] [
edit
]
By
default
,
the items
in
a
module
have
private
visibility
,
but
this
can be
overridden
with
the
`pub`
modifier
.
Only
the
public
items of a
module
can be
accessed
from
outside the
module
scope
.
{
visibility
.
play
}