[−][src]Struct rustc_privacy::PrivateItemsInPublicInterfacesVisitor

pub(crate) struct PrivateItemsInPublicInterfacesVisitor<'a, 'tcx> {
    tcx: TyCtxt<'tcx>,
    has_pub_restricted: bool,
    old_error_set: &'a HirIdSet,
}

Fields

tcx: TyCtxt<'tcx>has_pub_restricted: boolold_error_set: &'a HirIdSet

Implementations

impl<'a, 'tcx> PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>[src]

pub(crate) fn check(
    &self,
    item_id: HirId,
    required_visibility: Visibility
) -> SearchInterfaceForPrivateItemsVisitor<'tcx>
[src]

pub(crate) fn check_assoc_item(
    &self,
    hir_id: HirId,
    assoc_item_kind: AssocItemKind,
    defaultness: Defaultness,
    vis: Visibility
)
[src]

Trait Implementations

impl<'a, 'tcx> Visitor<'tcx> for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>[src]

type Map = Map<'tcx>

Auto Trait Implementations

impl<'a, 'tcx> !RefUnwindSafe for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>

impl<'a, 'tcx> !Send for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>

impl<'a, 'tcx> !Sync for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>

impl<'a, 'tcx> Unpin for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>

impl<'a, 'tcx> !UnwindSafe for PrivateItemsInPublicInterfacesVisitor<'a, 'tcx>

Blanket Implementations

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

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

impl<T> BorrowMut<T> 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, 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.