Struct rustc_mir::shim::CloneShimBuilder [−][src]
struct CloneShimBuilder<'tcx> {
tcx: TyCtxt<'tcx>,
def_id: DefId,
local_decls: IndexVec<Local, LocalDecl<'tcx>>,
blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>,
span: Span,
sig: FnSig<'tcx>,
}Fields
tcx: TyCtxt<'tcx>def_id: DefIdlocal_decls: IndexVec<Local, LocalDecl<'tcx>>blocks: IndexVec<BasicBlock, BasicBlockData<'tcx>>span: Spansig: FnSig<'tcx>Implementations
impl<'tcx> CloneShimBuilder<'tcx>[src]
impl<'tcx> CloneShimBuilder<'tcx>[src]fn new(tcx: TyCtxt<'tcx>, def_id: DefId, self_ty: Ty<'tcx>) -> Self[src]
fn into_mir(self) -> Body<'tcx>[src]
fn source_info(&self) -> SourceInfo[src]
fn block(
&mut self,
statements: Vec<Statement<'tcx>>,
kind: TerminatorKind<'tcx>,
is_cleanup: bool
) -> BasicBlock[src]
&mut self,
statements: Vec<Statement<'tcx>>,
kind: TerminatorKind<'tcx>,
is_cleanup: bool
) -> BasicBlock
fn block_index_offset(&mut self, offset: usize) -> BasicBlock[src]
fn block_index_offset(&mut self, offset: usize) -> BasicBlock[src]Gives the index of an upcoming BasicBlock, with an offset. offset=0 will give you the index of the next BasicBlock, offset=1 will give the index of the next-to-next block, offset=-1 will give you the index of the last-created block
fn make_statement(&self, kind: StatementKind<'tcx>) -> Statement<'tcx>[src]
fn copy_shim(&mut self)[src]
fn make_place(&mut self, mutability: Mutability, ty: Ty<'tcx>) -> Place<'tcx>[src]
fn make_clone_call(
&mut self,
dest: Place<'tcx>,
src: Place<'tcx>,
ty: Ty<'tcx>,
next: BasicBlock,
cleanup: BasicBlock
)[src]
&mut self,
dest: Place<'tcx>,
src: Place<'tcx>,
ty: Ty<'tcx>,
next: BasicBlock,
cleanup: BasicBlock
)
fn loop_header(
&mut self,
beg: Place<'tcx>,
end: Place<'tcx>,
loop_body: BasicBlock,
loop_end: BasicBlock,
is_cleanup: bool
)[src]
&mut self,
beg: Place<'tcx>,
end: Place<'tcx>,
loop_body: BasicBlock,
loop_end: BasicBlock,
is_cleanup: bool
)
fn make_usize(&self, value: u64) -> Box<Constant<'tcx>>[src]
fn array_shim(
&mut self,
dest: Place<'tcx>,
src: Place<'tcx>,
ty: Ty<'tcx>,
len: &'tcx Const<'tcx>
)[src]
&mut self,
dest: Place<'tcx>,
src: Place<'tcx>,
ty: Ty<'tcx>,
len: &'tcx Const<'tcx>
)
fn tuple_like_shim<I>(&mut self, dest: Place<'tcx>, src: Place<'tcx>, tys: I) where
I: Iterator<Item = Ty<'tcx>>, [src]
I: Iterator<Item = Ty<'tcx>>,
Auto Trait Implementations
impl<'tcx> !RefUnwindSafe for CloneShimBuilder<'tcx>
impl<'tcx> !Send for CloneShimBuilder<'tcx>
impl<'tcx> !Sync for CloneShimBuilder<'tcx>
impl<'tcx> Unpin for CloneShimBuilder<'tcx>
impl<'tcx> !UnwindSafe for CloneShimBuilder<'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]