Enum syn::Visibility [−][src]
pub enum Visibility {
Public(VisPublic),
Crate(VisCrate),
Restricted(VisRestricted),
Inherited,
}
Expand description
The visibility level of an item: inherited or pub
or
pub(restricted)
.
This type is available only if Syn is built with the "derive"
or "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
Public(VisPublic)
Tuple Fields
0: VisPublic
A public visibility level: pub
.
Crate(VisCrate)
Tuple Fields
0: VisCrate
A crate-level visibility: crate
.
Restricted(VisRestricted)
Tuple Fields
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.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Visibility
impl !Send for Visibility
impl !Sync for Visibility
impl Unpin for Visibility
impl UnwindSafe for Visibility
Blanket Implementations
Mutably borrows from an owned value. Read more