[−][src]Struct rustc_privacy::ObsoleteCheckTypeForPrivatenessVisitor

pub(crate) struct ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx> {
    inner: &'a ObsoleteVisiblePrivateTypesVisitor<'b, 'tcx>,
    contains_private: bool,
    at_outer_type: bool,
    outer_type_is_public_path: bool,
}

Fields

inner: &'a ObsoleteVisiblePrivateTypesVisitor<'b, 'tcx>contains_private: bool

Whether the type refers to private types.

at_outer_type: bool

Whether we've recurred at all (i.e., if we're pointing at the first type on which visit_ty was called).

outer_type_is_public_path: bool

Whether that first type is a public path.

Trait Implementations

impl<'a, 'b, 'tcx, 'v> Visitor<'v> for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx>[src]

type Map = ErasedMap<'v>

Auto Trait Implementations

impl<'a, 'b, 'tcx> !RefUnwindSafe for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx>

impl<'a, 'b, 'tcx> !Send for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx>

impl<'a, 'b, 'tcx> !Sync for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx>

impl<'a, 'b, 'tcx> Unpin for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, 'tcx> where
    'b: 'a,
    'tcx: 'a, 

impl<'a, 'b, 'tcx> !UnwindSafe for ObsoleteCheckTypeForPrivatenessVisitor<'a, 'b, '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.