pub struct AccessLevelsVisitor<'r, 'a> {
    r: &'r mut Resolver<'a>,
    changed: bool,
}

Fields

r: &'r mut Resolver<'a>changed: bool

Implementations

Fills the Resolver::access_levels 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 the access level of the bindings in the given module accordingly. The module access level has to be Exported or Public. This will also follow use chains (see PrivacyVisitor::set_import_binding_access_level).

Sets the access level of the LocalDefId corresponding to the given NodeId. This function will panic if the NodeId does not have a LocalDefId

Trait Implementations

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: 16 bytes