[−][src]Struct rustc_mir::dataflow::move_paths::builder::Gatherer
Fields
builder: &'b mut MoveDataBuilder<'a, 'tcx>loc: LocationImplementations
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]
pub(in dataflow::move_paths::builder) fn move_path_for(
&mut self,
place: Place<'tcx>
) -> Result<MovePathIndex, MoveError<'tcx>>[src]
&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.
pub(in dataflow::move_paths::builder) 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
pub(in dataflow::move_paths::builder) fn create_move_path(
&mut self,
place: Place<'tcx>
)[src]
&mut self,
place: Place<'tcx>
)
impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>[src]
pub(in dataflow::move_paths::builder) fn gather_statement(
&mut self,
stmt: &Statement<'tcx>
)[src]
&mut self,
stmt: &Statement<'tcx>
)
pub(in dataflow::move_paths::builder) fn gather_rvalue(
&mut self,
rvalue: &Rvalue<'tcx>
)[src]
&mut self,
rvalue: &Rvalue<'tcx>
)
pub(in dataflow::move_paths::builder) fn gather_terminator(
&mut self,
term: &Terminator<'tcx>
)[src]
&mut self,
term: &Terminator<'tcx>
)
pub(in dataflow::move_paths::builder) fn gather_operand(
&mut self,
operand: &Operand<'tcx>
)[src]
&mut self,
operand: &Operand<'tcx>
)
pub(in dataflow::move_paths::builder) fn gather_move(
&mut self,
place: Place<'tcx>
)[src]
&mut self,
place: Place<'tcx>
)
pub(in dataflow::move_paths::builder) fn record_move(
&mut self,
place: Place<'tcx>,
path: MovePathIndex
)[src]
&mut self,
place: Place<'tcx>,
path: MovePathIndex
)
pub(in dataflow::move_paths::builder) fn gather_init(
&mut self,
place: PlaceRef<'tcx>,
kind: InitKind
)[src]
&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,
'a: 'b,
'tcx: 'b,
impl<'b, 'a, 'tcx> !UnwindSafe for Gatherer<'b, 'a, '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.