Struct rustc_mir_dataflow::move_paths::builder::Gatherer
source · struct Gatherer<'b, 'a, 'tcx> {
builder: &'b mut MoveDataBuilder<'a, 'tcx>,
loc: Location,
}
Fields
builder: &'b mut MoveDataBuilder<'a, 'tcx>
loc: Location
Implementations
sourceimpl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>
sourcefn move_path_for(
&mut self,
place: Place<'tcx>
) -> Result<MovePathIndex, MoveError<'tcx>>
fn move_path_for(
&mut self,
place: Place<'tcx>
) -> Result<MovePathIndex, MoveError<'tcx>>
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
fn create_move_path(&mut self, place: Place<'tcx>)
sourceimpl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>
fn gather_statement(&mut self, stmt: &Statement<'tcx>)
fn gather_rvalue(&mut self, rvalue: &Rvalue<'tcx>)
fn gather_terminator(&mut self, term: &Terminator<'tcx>)
fn gather_operand(&mut self, operand: &Operand<'tcx>)
fn gather_move(&mut self, place: Place<'tcx>)
fn record_move(&mut self, place: Place<'tcx>, path: MovePathIndex)
fn gather_init(&mut self, place: PlaceRef<'tcx>, kind: InitKind)
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,
impl<'b, 'a, 'tcx> !UnwindSafe for Gatherer<'b, 'a, 'tcx>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes