Struct rustc_transmute::rustc::Types
source · pub struct Types<'tcx> {
pub src: Ty<'tcx>,
pub dst: Ty<'tcx>,
}
Expand description
The source and destination types of a transmutation.
Fields§
§src: Ty<'tcx>
The source type.
dst: Ty<'tcx>
The destination type.
Trait Implementations§
source§impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Types<'tcx>
impl<'tcx> TypeVisitable<TyCtxt<'tcx>> for Types<'tcx>
source§fn visit_with<__V: TypeVisitor<TyCtxt<'tcx>>>(
&self,
__visitor: &mut __V
) -> ControlFlow<__V::BreakTy>
fn visit_with<__V: TypeVisitor<TyCtxt<'tcx>>>( &self, __visitor: &mut __V ) -> ControlFlow<__V::BreakTy>
impl<'tcx> Copy for Types<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for Types<'tcx>
impl<'tcx> Send for Types<'tcx>
impl<'tcx> Sync for Types<'tcx>
impl<'tcx> Unpin for Types<'tcx>
impl<'tcx> !UnwindSafe for Types<'tcx>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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