Enum rustc_mir_transform::shim::CallKind
source · enum CallKind<'tcx> {
Indirect(Ty<'tcx>),
Direct(DefId),
}
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§
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
Size for each variant:
Indirect
: 12 bytesDirect
: 8 bytes