pub struct EffectiveVisibilitiesVisitor<'r, 'a> {
    r: &'r mut Resolver<'a>,
    def_effective_visibilities: EffectiveVisibilities,
    import_effective_visibilities: EffectiveVisibilities<Interned<'a, NameBinding<'a>>>,
    current_private_vis: Visibility,
    changed: bool,
}

Fields§

§r: &'r mut Resolver<'a>§def_effective_visibilities: EffectiveVisibilities§import_effective_visibilities: EffectiveVisibilities<Interned<'a, NameBinding<'a>>>

While walking import chains we need to track effective visibilities per-binding, and def id keys in Resolver::effective_visibilities are not enough for that, because multiple bindings can correspond to a single def id in imports. So we keep a separate table.

§current_private_vis: Visibility§changed: bool

Implementations§

Fills the Resolver::effective_visibilities table with public & exported items For now, this doesn’t resolve macros (FIXME) and cannot resolve Impl, as we need access to a TyCtxt for that.

Update effective visibilities of bindings in the given module, including their whole reexport chains.

Trait Implementations§

This method is a hack to workaround unstable of stmt_expr_attributes. It can be removed once that feature is stabilized. Read more
source§

fn visit_expr_post(&mut self, _ex: &'ast Expr)

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. 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: 80 bytes