Module rustc_middle::ty::adjustment[][src]

Structs

Adjustment

Represents coercing a value to a different type of value.

CoerceUnsizedInfo

Information for CoerceUnsized impls, storing information we have computed about the coercion.

OverloadedDeref

An overloaded autoderef step, representing a Deref(Mut)::deref(_mut) call, with the signature &'a T -> &'a U or &'a mut T -> &'a mut U. The target type is U in both cases, with the region and mutability being those shared by both the receiver and the returned reference.

Enums

Adjust
AllowTwoPhase

At least for initial deployment, we want to limit two-phase borrows to only a few specific cases. Right now, those are mostly “things that desugar” into method calls:

AutoBorrow
AutoBorrowMutability
CustomCoerceUnsized
PointerCast