Struct rustc_mir::dataflow::move_paths::builder::Gatherer [−][src]
struct Gatherer<'b, 'a, 'tcx> {
builder: &'b mut MoveDataBuilder<'a, 'tcx>,
loc: Location,
}Fields
builder: &'b mut MoveDataBuilder<'a, 'tcx>loc: LocationImplementations
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]fn move_path_for(
&mut self,
place: Place<'tcx>
) -> Result<MovePathIndex, MoveError<'tcx>>[src]
fn move_path_for(
&mut self,
place: Place<'tcx>
) -> Result<MovePathIndex, MoveError<'tcx>>[src]This creates a MovePath for a given place, returning an MovePathError
if that place can’t be moved from.
NOTE: places behind references do not get a move path, which is problematic for borrowck.
Maybe we should have separate “borrowck” and “moveck” modes.
fn add_move_path(
&mut self,
base: MovePathIndex,
elem: PlaceElem<'tcx>,
mk_place: impl FnOnce(TyCtxt<'tcx>) -> Place<'tcx>
) -> MovePathIndex[src]
&mut self,
base: MovePathIndex,
elem: PlaceElem<'tcx>,
mk_place: impl FnOnce(TyCtxt<'tcx>) -> Place<'tcx>
) -> MovePathIndex
fn create_move_path(&mut self, place: Place<'tcx>)[src]
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]fn gather_statement(&mut self, stmt: &Statement<'tcx>)[src]
fn gather_rvalue(&mut self, rvalue: &Rvalue<'tcx>)[src]
fn gather_terminator(&mut self, term: &Terminator<'tcx>)[src]
fn gather_operand(&mut self, operand: &Operand<'tcx>)[src]
fn gather_move(&mut self, place: Place<'tcx>)[src]
fn record_move(&mut self, place: Place<'tcx>, path: MovePathIndex)[src]
fn gather_init(&mut self, place: PlaceRef<'tcx>, kind: InitKind)[src]
Auto Trait Implementations
impl<'b, 'a, 'tcx> !RefUnwindSafe for Gatherer<'b, 'a, 'tcx>
impl<'b, 'a, 'tcx> !Send for Gatherer<'b, 'a, 'tcx>
impl<'b, 'a, 'tcx> !Sync for Gatherer<'b, 'a, 'tcx>
impl<'b, 'a, 'tcx> Unpin for Gatherer<'b, 'a, 'tcx> where
'a: 'b,
'tcx: 'b,
'a: 'b,
'tcx: 'b,
impl<'b, 'a, 'tcx> !UnwindSafe for Gatherer<'b, '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]