Expand description
In certain situations, rust automatically inserts derefs as necessary: for
example, field accesses foo.bar still work when foo is actually a
reference to a type with the field bar. This is an approximation of the
logic in rustc (which lives in rustc_hir_typeck/autoderef.rs).
Structsยง
- Autoderef
Snapshot ๐ - Autoderef
Traits ๐ - Default
Autoderef ๐Ctx - General
Autoderef ๐ - Recursively dereference a type, considering both built-in
dereferences (
*) and theDereftrait. Although calledAutoderefit can be configured to use theReceivertrait instead of theDereftrait. - Inference
Context ๐Autoderef Ctx
Enumsยง
- Autoderef
Kind ๐
Constantsยง
Traitsยง
- Autoderef
Ctx ๐ - Track
Autoderef ๐Steps
Functionsยง
- autoderef
- Returns types that
tytransitively dereferences to. This function is only meant to be used outsidehir-ty. - structurally_
normalize_ ๐ty
Type Aliasesยง
- Autoderef ๐
- Inference
Context ๐Autoderef