Skip to main content

Module full_def

Module full_def 

Source

Structsยง

Adt
ADts (Struct, Enum and Union map to this).
AssocConst
Associated constant: trait MyTrait { const ASSOC: usize; }
AssocFn
Associated function: impl MyStruct { fn associated() {} } or trait Foo { fn associated() {} }
AssocTy
Associated type: trait MyTrait { type Assoc; }
Closure
A closure, coroutine, or coroutine-closure.
Const
Ctor
The constructor function of a tuple/unit struct or tuple/unit enum variant.
Fn
FnPointer
ForeignMod
An extern block.
FullDef
Gathers a lot of definition information about a rustc_hir::def_id::DefId.
ImplAssocItem
An associated item in a trait impl. This can be an item provided by the trait impl, or an item that reuses the trait decl default value.
ImplAssocItemValue
The item is provided by the trait impl.
InherentImpl
Mod
ParamEnv
The combination of type generics and related predicates.
Static
Trait
TraitAlias
Trait alias: trait IntIterator = Iterator<Item = i32>;
TraitImpl
TraitItemBinder
The binding context to use when translating a trait impl associated item.
TyAlias
Type alias: type Foo = Bar;

Enumsยง

AssocTyKind
ConstKind
The kind of a constant item.
FullDefKind
Imbues rustc_hir::def::DefKind with a lot of extra information.
InlineAttr

Functionsยง

assoc_items_of ๐Ÿ”’
The associated items of the trait or inherent impl that owns s, in definition order.
gen_vtable_sig ๐Ÿ”’
The vtable signature of the method, along with the state of its container.
get_implied_predicates ๐Ÿ”’
get_param_env ๐Ÿ”’
get_self_predicate ๐Ÿ”’
get_trait_decl_dyn_self_ty ๐Ÿ”’
Generates a dyn Trait<Args.., Ty = <Self as Trait>::Ty..> type for this trait.
late_bound_for_def ๐Ÿ”’
self_trait_ref ๐Ÿ”’
translate_full_def ๐Ÿ”’
Construct the FullDef for this item. If args is Some, the returned FullDef will be instantiated with the provided generics.
translate_full_def_kind ๐Ÿ”’
Construct the FullDefKind for this item.
vtable_sig_with_dyn_self ๐Ÿ”’
The signature of method_decl as stored in a vtable, i.e. with its Self type replaced by the given dyn Trait<..> type.