Enum devise::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 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.
Tuple Fields of Public
0: VisPublicCrate(VisCrate)A crate-level visibility: crate.
This type is available if Syn is built with the "derive" or
"full" feature.
Tuple Fields of Crate
0: VisCrateRestricted(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.
Tuple Fields of Restricted
An inherited visibility, which usually means private.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more