Enum rustc_mir_transform::shim::CallKind
source · Variants§
Indirect(Ty<'tcx>)
Call the FnPtr
that was passed as the receiver.
Direct(DefId)
Call a known FnDef
.
Trait Implementations§
source§impl<'tcx> PartialEq<CallKind<'tcx>> for CallKind<'tcx>
impl<'tcx> PartialEq<CallKind<'tcx>> for CallKind<'tcx>
impl<'tcx> Copy for CallKind<'tcx>
impl<'tcx> StructuralPartialEq for CallKind<'tcx>
Auto Trait Implementations§
impl<'tcx> !RefUnwindSafe for CallKind<'tcx>
impl<'tcx> !Send for CallKind<'tcx>
impl<'tcx> !Sync for CallKind<'tcx>
impl<'tcx> Unpin for CallKind<'tcx>
impl<'tcx> !UnwindSafe for CallKind<'tcx>
Blanket Implementations§
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:
Indirect
: 12 bytesDirect
: 8 bytes