Struct rustc_mir::shim::CloneShimBuilder [−][src]
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]
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]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.