Struct rustc_trans::middle::borrowck::move_data::FlowedMoveDataExperimental
[-]
[+]
[src]
pub struct FlowedMoveData<'a, 'tcx> {
pub move_data: MoveData,
pub dfcx_moves: DataFlowContext<'a, 'tcx, MoveDataFlowOperator>,
pub dfcx_assign: DataFlowContext<'a, 'tcx, AssignDataFlowOperator>,
}Fields
move_data | |
dfcx_moves | |
dfcx_assign |
Methods
impl<'a, 'tcx> FlowedMoveData<'a, 'tcx>
fn new(move_data: MoveData, tcx: &'a ctxt<'tcx>, cfg: &CFG, id_range: IdRange, decl: &FnDecl, body: &Block) -> FlowedMoveData<'a, 'tcx>
fn kind_of_move_of_path(&self, id: u32, loan_path: &Rc<LoanPath>) -> Option<MoveKind>
Returns the kind of a move of loan_path by id, if one exists.
fn each_move_of(&self, id: u32, loan_path: &Rc<LoanPath>, f: |&Move, &LoanPath| -> bool) -> bool
Iterates through each move of loan_path (or some base path
of loan_path) that may have occurred on entry to id without
an intervening assignment. In other words, any moves that
would invalidate a reference to loan_path at location id.
fn each_assignment_of(&self, id: u32, loan_path: &Rc<LoanPath>, f: |&Assignment| -> bool) -> bool
Iterates through every assignment to loan_path that
may have occurred on entry to id. loan_path must be
a single variable.