Struct rustc_borrowck::ty::adjustment::OverloadedDeref [−][src]
pub struct OverloadedDeref<'tcx> {
pub region: &'tcx RegionKind,
pub mutbl: Mutability,
pub span: Span,
}Expand description
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.
Fields
region: &'tcx RegionKindmutbl: Mutabilityspan: SpanThe Span associated with the field access or method call
that triggered this overloaded deref.
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for OverloadedDeref<'tcx>
impl<'tcx> !Send for OverloadedDeref<'tcx>
impl<'tcx> !Sync for OverloadedDeref<'tcx>
impl<'tcx> Unpin for OverloadedDeref<'tcx>
impl<'tcx> UnwindSafe for OverloadedDeref<'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: 24 bytes