Enum rustc_save_analysis::ty::VtblEntry [−][src]
pub enum VtblEntry<'tcx> {
MetadataDropInPlace,
MetadataSize,
MetadataAlign,
Vacant,
Method(Instance<'tcx>),
TraitVPtr(Binder<'tcx, TraitRef<'tcx>>),
}Variants
MetadataDropInPlace
destructor of this type (used in vtable header)
MetadataSize
layout size of this type (used in vtable header)
MetadataAlign
layout align of this type (used in vtable header)
Vacant
non-dispatchable associated function that is excluded from trait object
Method(Instance<'tcx>)
Tuple Fields
0: Instance<'tcx>dispatchable associated function
TraitVPtr(Binder<'tcx, TraitRef<'tcx>>)
pointer to a separate supertrait vtable, can be used by trait upcasting coercion
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for VtblEntry<'tcx>
impl<'tcx> !UnwindSafe for VtblEntry<'tcx>
Blanket Implementations
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: 40 bytes
Size for each variant:
MetadataDropInPlace: 0 bytesMetadataSize: 0 bytesMetadataAlign: 0 bytesVacant: 0 bytesMethod: 32 bytesTraitVPtr: 24 bytes