Enum syn::Visibility [−][src]
pub enum Visibility { Public(VisPublic), Crate(VisCrate), Restricted(VisRestricted), Inherited, }
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)
A public visibility level: pub
.
Crate(VisCrate)
A crate-level visibility: crate
.
Restricted(VisRestricted)
A visibility level restricted to some path: pub(self)
or
pub(super)
or pub(crate)
or pub(in some::module)
.
An inherited visibility, which usually means private.
Trait Implementations
impl Clone for Visibility
[src]
impl Clone for Visibility
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<VisCrate> for Visibility
[src]
impl From<VisCrate> for Visibility
[src]fn from(e: VisCrate) -> Visibility
[src]
impl From<VisPublic> for Visibility
[src]
impl From<VisPublic> for Visibility
[src]fn from(e: VisPublic) -> Visibility
[src]
impl From<VisRestricted> for Visibility
[src]
impl From<VisRestricted> for Visibility
[src]fn from(e: VisRestricted) -> Visibility
[src]
impl Hash for Visibility
[src]
impl Hash for Visibility
[src]impl Parse for Visibility
[src]
impl Parse for Visibility
[src]fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<Visibility> for Visibility
[src]
impl PartialEq<Visibility> for Visibility
[src]impl ToTokens for Visibility
[src]
impl ToTokens for Visibility
[src]