Enum rustc_typeck::ty::adjustment::Adjust [−][src]
pub enum Adjust<'tcx> {
NeverToAny,
Deref(Option<OverloadedDeref<'tcx>>),
Borrow(AutoBorrow<'tcx>),
Pointer(PointerCast),
}Variants
NeverToAny
Go from ! to any type.
Deref(Option<OverloadedDeref<'tcx>>)
Tuple Fields
0: Option<OverloadedDeref<'tcx>>Dereference once, producing a place.
Borrow(AutoBorrow<'tcx>)
Tuple Fields
0: AutoBorrow<'tcx>Take the address and produce either a & or * pointer.
Pointer(PointerCast)
Tuple Fields
0: PointerCastAuto Trait Implementations
impl<'tcx> RefUnwindSafe for Adjust<'tcx>
impl<'tcx> UnwindSafe for Adjust<'tcx>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn subst_spanned(
self,
tcx: TyCtxt<'tcx>,
substs: &[GenericArg<'tcx>],
span: Option<Span>
) -> T
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
NeverToAny: 0 bytesDeref: 31 bytesBorrow: 23 bytesPointer: 1 byte