Enum rustc_middle::ty::Visibility [−][src]
pub enum Visibility {
Public,
Restricted(DefId),
Invisible,
}Variants
Visible everywhere (including in other crates).
Visible only in the given crate-local module.
Tuple Fields of Restricted
0: DefIdNot visible anywhere in the local crate. This is the visibility of private external items.
Implementations
Returns true if an item with this visibility is accessible from the given block.
Returns true if this visibility is at least as accessible as the given visibility
Trait Implementations
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
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes