Enum rustc_typeck::ty::adjustment::AutoBorrow [−][src]
pub enum AutoBorrow<'tcx> {
Ref(&'tcx RegionKind, AutoBorrowMutability),
RawPtr(Mutability),
}Variants
Ref(&'tcx RegionKind, AutoBorrowMutability)
Converts from T to &T.
RawPtr(Mutability)
Tuple Fields
0: MutabilityConverts from T to *T.
Auto Trait Implementations
impl<'tcx> RefUnwindSafe for AutoBorrow<'tcx>
impl<'tcx> Send for AutoBorrow<'tcx>
impl<'tcx> Sync for AutoBorrow<'tcx>
impl<'tcx> Unpin for AutoBorrow<'tcx>
impl<'tcx> UnwindSafe for AutoBorrow<'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: 16 bytes
Size for each variant:
Ref: 15 bytesRawPtr: 1 byte