Enum rustc_resolve::RibKind [−][src]
enum RibKind<'a> { NormalRibKind, ClosureRibKind(NodeId), TraitOrImplItemRibKind, ItemRibKind, ConstantItemRibKind, ModuleRibKind(&'a ModuleData<'a>), MacroDefinition(DefId), ForwardTyParamBanRibKind, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The rib kind controls the translation of local
definitions (Def::Local
) to upvars (Def::Upvar
).
Variants
NormalRibKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
No translation needs to be applied.
ClosureRibKind(NodeId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We passed through a closure scope at the given node ID. Translate upvars as appropriate.
TraitOrImplItemRibKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We passed through an impl or trait and are now in one of its methods or associated types. Allow references to ty params that impl or trait binds. Disallow any other upvars (including other ty params that are upvars).
ItemRibKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We passed through an item scope. Disallow upvars.
ConstantItemRibKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We're in a constant item. Can't refer to dynamic stuff.
ModuleRibKind(&'a ModuleData<'a>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We passed through a module.
MacroDefinition(DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
We passed through a macro_rules!
statement
ForwardTyParamBanRibKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
All bindings in this rib are type parameters that can't be used
from the default of a type parameter because they're not declared
before said type parameter. Also see the visit_generics
override.
Trait Implementations
impl<'a> Copy for RibKind<'a>
[src]
impl<'a> Copy for RibKind<'a>
impl<'a> Clone for RibKind<'a>
[src]
impl<'a> Clone for RibKind<'a>
fn clone(&self) -> RibKind<'a>
[src]
fn clone(&self) -> RibKind<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a> Debug for RibKind<'a>
[src]
impl<'a> Debug for RibKind<'a>