Struct rustc_mir::shim::DropShimElaborator [−][src]
pub struct DropShimElaborator<'a, 'tcx> {
pub body: &'a Body<'tcx>,
pub patch: MirPatch<'tcx>,
pub tcx: TyCtxt<'tcx>,
pub param_env: ParamEnv<'tcx>,
}Fields
body: &'a Body<'tcx>patch: MirPatch<'tcx>tcx: TyCtxt<'tcx>param_env: ParamEnv<'tcx>Trait Implementations
impl<'a, 'tcx> Debug for DropShimElaborator<'a, 'tcx>[src]
impl<'a, 'tcx> Debug for DropShimElaborator<'a, 'tcx>[src]impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx>[src]
impl<'a, 'tcx> DropElaborator<'a, 'tcx> for DropShimElaborator<'a, 'tcx>[src]fn patch(&mut self) -> &mut MirPatch<'tcx>[src]
fn body(&self) -> &'a Body<'tcx>[src]
fn tcx(&self) -> TyCtxt<'tcx>[src]
fn param_env(&self) -> ParamEnv<'tcx>[src]
fn drop_style(&self, _path: Self::Path, mode: DropFlagMode) -> DropStyle[src]
fn drop_style(&self, _path: Self::Path, mode: DropFlagMode) -> DropStyle[src]Returns how path should be dropped, given mode.
fn get_drop_flag(&mut self, _path: Self::Path) -> Option<Operand<'tcx>>[src]
fn get_drop_flag(&mut self, _path: Self::Path) -> Option<Operand<'tcx>>[src]Returns the drop flag of path as a MIR Operand (or None if path has no drop flag).
fn clear_drop_flag(
&mut self,
_location: Location,
_path: Self::Path,
_mode: DropFlagMode
)[src]
fn clear_drop_flag(
&mut self,
_location: Location,
_path: Self::Path,
_mode: DropFlagMode
)[src]Modifies the MIR patch so that the drop flag of path (if any) is cleared at location. Read more
fn field_subpath(&self, _path: Self::Path, _field: Field) -> Option<Self::Path>[src]
fn field_subpath(&self, _path: Self::Path, _field: Field) -> Option<Self::Path>[src]Returns the subpath of a field of path (or None if there is no dedicated subpath). Read more
fn deref_subpath(&self, _path: Self::Path) -> Option<Self::Path>[src]
fn deref_subpath(&self, _path: Self::Path) -> Option<Self::Path>[src]Returns the subpath of a dereference of path (or None if there is no dedicated subpath). Read more
fn downcast_subpath(
&self,
_path: Self::Path,
_variant: VariantIdx
) -> Option<Self::Path>[src]
fn downcast_subpath(
&self,
_path: Self::Path,
_variant: VariantIdx
) -> Option<Self::Path>[src]Returns the subpath of downcasting path to one of its variants. Read more
Auto Trait Implementations
impl<'a, 'tcx> !RefUnwindSafe for DropShimElaborator<'a, 'tcx>
impl<'a, 'tcx> !Send for DropShimElaborator<'a, 'tcx>
impl<'a, 'tcx> !Sync for DropShimElaborator<'a, 'tcx>
impl<'a, 'tcx> Unpin for DropShimElaborator<'a, 'tcx> where
'tcx: 'a,
'tcx: 'a,
impl<'a, 'tcx> !UnwindSafe for DropShimElaborator<'a, 'tcx>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]