Struct rustc::middle::borrowck::move_data::MoveDataExperimental
[-]
[+]
[src]
pub struct MoveData {
pub paths: RefCell<Vec<MovePath>>,
pub path_map: RefCell<FnvHashMap<Rc<LoanPath>, MovePathIndex>>,
pub moves: RefCell<Vec<Move>>,
pub var_assignments: RefCell<Vec<Assignment>>,
pub path_assignments: RefCell<Vec<Assignment>>,
pub assignee_ids: RefCell<NodeSet>,
}Fields
Methods
impl MoveData
fn new() -> MoveData
fn path_loan_path(&self, index: MovePathIndex) -> Rc<LoanPath>
fn move_path(&self, tcx: &ctxt, lp: Rc<LoanPath>) -> MovePathIndex
Returns the existing move path index for lp, if any,
and otherwise adds a new index for lp and any of its
base paths that do not yet have an index.
fn add_move(&self, tcx: &ctxt, lp: Rc<LoanPath>, id: NodeId, kind: MoveKind)
Adds a new move entry for a move of lp that occurs at
location id with kind kind.
fn add_assignment(&self, tcx: &ctxt, lp: Rc<LoanPath>, assign_id: NodeId, span: Span, assignee_id: NodeId, mode: MutateMode)
Adds a new record for an assignment to lp that occurs at
location id with the given span.