Enum syn::Visibility [−][src]
The visibility level of an item: inherited or pub
or
pub(restricted)
.
This type is available if Syn is built with the "derive"
or "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
Public(VisPublic)
A public visibility level: pub
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Crate(VisCrate)
A crate-level visibility: crate
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Restricted(VisRestricted)
A visibility level restricted to some path: pub(self)
or
pub(super)
or pub(crate)
or pub(in some::module)
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Inherited
An inherited visibility, which usually means private.
Trait Implementations
impl Synom for Visibility
[src]
[+]
impl Synom for Visibility
impl Clone for Visibility
[src]
[+]
impl Clone for Visibility
impl From<VisPublic> for Visibility
[src]
[+]
impl From<VisPublic> for Visibility
impl From<VisCrate> for Visibility
[src]
[+]
impl From<VisCrate> for Visibility
impl From<VisRestricted> for Visibility
[src]
[+]
impl From<VisRestricted> for Visibility
impl ToTokens for Visibility
[src]
[+]
impl ToTokens for Visibility
Auto Trait Implementations
impl !Send for Visibility
impl !Send for Visibility
impl !Sync for Visibility
impl !Sync for Visibility