struct Gatherer<'b, 'a, 'tcx> {
    builder: &'b mut MoveDataBuilder<'a, 'tcx>,
    loc: Location,
}

Fields§

§builder: &'b mut MoveDataBuilder<'a, 'tcx>§loc: Location

Implementations§

source§

impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>

source

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.

source

fn add_move_path( &mut self, base: MovePathIndex, elem: PlaceElem<'tcx>, mk_place: impl FnOnce(TyCtxt<'tcx>) -> Place<'tcx> ) -> MovePathIndex

source

fn create_move_path(&mut self, place: Place<'tcx>)

source§

impl<'b, 'a, 'tcx> Gatherer<'b, 'a, 'tcx>

source

fn gather_statement(&mut self, stmt: &Statement<'tcx>)

source

fn gather_rvalue(&mut self, rvalue: &Rvalue<'tcx>)

source

fn gather_terminator(&mut self, term: &Terminator<'tcx>)

source

fn gather_operand(&mut self, operand: &Operand<'tcx>)

source

fn gather_move(&mut self, place: Place<'tcx>)

source

fn record_move(&mut self, place: Place<'tcx>, path: MovePathIndex)

source

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>

§

impl<'b, 'a, 'tcx> !UnwindSafe for Gatherer<'b, 'a, 'tcx>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

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