[−][src]Enum rustc_middle::middle::privacy::AccessLevel

pub enum AccessLevel {
    ReachableFromImplTrait,
    Reachable,
    Exported,
    Public,
}

Variants

ReachableFromImplTrait

Superset of AccessLevel::Reachable used to mark impl Trait items.

Reachable

Exported items + items participating in various kinds of public interfaces, but not directly nameable. For example, if function fn f() -> T {...} is public, then type T is reachable. Its values can be obtained by other crates even if the type itself is not nameable.

Exported

Public items + items accessible to other crates with help of pub use re-exports

Public

Items accessible to other crates directly, without help of re-exports

Trait Implementations

impl Clone for AccessLevel[src]

impl Copy for AccessLevel[src]

impl Debug for AccessLevel[src]

impl Eq for AccessLevel[src]

impl<'__ctx> HashStable<StableHashingContext<'__ctx>> for AccessLevel[src]

impl Ord for AccessLevel[src]

impl PartialEq<AccessLevel> for AccessLevel[src]

impl PartialOrd<AccessLevel> for AccessLevel[src]

impl StructuralEq for AccessLevel[src]

impl StructuralPartialEq for AccessLevel[src]

Auto Trait Implementations

impl RefUnwindSafe for AccessLevel

impl Send for AccessLevel

impl Sync for AccessLevel

impl Unpin for AccessLevel

impl UnwindSafe for AccessLevel

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

impl<T> ToOwned for T where
    T: Clone, 
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]