trait DebugInfoOffsetLocation<'tcx, Bx> {
// Required methods
fn deref(&self, bx: &mut Bx) -> Self;
fn layout(&self) -> TyAndLayout<'tcx>;
fn project_field(&self, bx: &mut Bx, field: FieldIdx) -> Self;
fn project_constant_index(&self, bx: &mut Bx, offset: u64) -> Self;
fn downcast(&self, bx: &mut Bx, variant: VariantIdx) -> Self;
}
Required Methods§
fn deref(&self, bx: &mut Bx) -> Self
fn layout(&self) -> TyAndLayout<'tcx>
fn project_field(&self, bx: &mut Bx, field: FieldIdx) -> Self
fn project_constant_index(&self, bx: &mut Bx, offset: u64) -> Self
fn downcast(&self, bx: &mut Bx, variant: VariantIdx) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.