Structsยง
- Adt
- ADts (
Struct,EnumandUnionmap to this). - Assoc
Const - Associated constant:
trait MyTrait { const ASSOC: usize; } - AssocFn
- Associated function:
impl MyStruct { fn associated() {} }ortrait 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
- Foreign
Mod - An
externblock. - FullDef
- Gathers a lot of definition information about a
rustc_hir::def_id::DefId. - Impl
Assoc Item - 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.
- Impl
Assoc Item Value - The item is provided by the trait impl.
- Inherent
Impl - Mod
- Param
Env - The combination of type generics and related predicates.
- Static
- Trait
- Trait
Alias - Trait alias:
trait IntIterator = Iterator<Item = i32>; - Trait
Impl - Trait
Item Binder - The binding context to use when translating a trait impl associated item.
- TyAlias
- Type alias:
type Foo = Bar;
Enumsยง
- Assoc
TyKind - Const
Kind - The kind of a constant item.
- Full
DefKind - Imbues
rustc_hir::def::DefKindwith a lot of extra information. - Inline
Attr
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
FullDeffor this item. IfargsisSome, the returnedFullDefwill be instantiated with the provided generics. - translate_
full_ ๐def_ kind - Construct the
FullDefKindfor this item. - vtable_
sig_ ๐with_ dyn_ self - The signature of
method_declas stored in a vtable, i.e. with itsSelftype replaced by the givendyn Trait<..>type.