Enum syn::Visibility [−][src]
Visibility level of an item.
Variants
Public
Public, i.e. pub
.
Crate
Crate-visible, i.e. pub(crate)
.
Restricted(Box<Path>)
Restricted, e.g. pub(some::module)
.
Inherited
Inherited, i.e. private.
Trait Implementations
impl ToTokens for Visibility
[src]
impl ToTokens for Visibility
impl Debug for Visibility
[src]
impl Debug for Visibility
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Visibility
[src]
impl Clone for Visibility
fn clone(&self) -> Visibility
[src]
fn clone(&self) -> Visibility
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Visibility
[src]
impl Eq for Visibility
impl PartialEq for Visibility
[src]
impl PartialEq for Visibility
fn eq(&self, other: &Visibility) -> bool
[src]
fn eq(&self, other: &Visibility) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Visibility) -> bool
[src]
fn ne(&self, other: &Visibility) -> bool
This method tests for !=
.
impl Hash for Visibility
[src]
impl Hash for Visibility
Auto Trait Implementations
impl Send for Visibility
impl Send for Visibility
impl Sync for Visibility
impl Sync for Visibility