Enum syn::Visibility
source · pub enum Visibility {
Public(Pub),
Restricted(VisRestricted),
Inherited,
}
Expand description
The visibility level of an item: inherited or pub
or
pub(restricted)
.
Syntax tree enum
This type is a syntax tree enum.
Variants§
Public(Pub)
A public visibility level: pub
.
Restricted(VisRestricted)
A visibility level restricted to some path: pub(self)
or
pub(super)
or pub(crate)
or pub(in some::module)
.
Inherited
An inherited visibility, which usually means private.