Struct rustc_trans::middle::ty::UpvarIdExperimental [-]  [+] [src]

pub struct UpvarId {
    pub var_id: u32,
    pub closure_expr_id: u32,
}

Upvars do not get their own node-id. Instead, we use the pair of the original var id (that is, the root variable that is referenced by the upvar) and the id of the closure expression.

Fields

var_id
closure_expr_id

Trait Implementations

impl<'tcx> Repr<'tcx> for UpvarId

fn repr(&self, tcx: &ctxt) -> String

Derived Implementations

impl Show for UpvarId

fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>

impl<__S: Writer> Hash<__S> for UpvarId

fn hash(&self, __arg_0: &mut __S)

impl Eq for UpvarId

fn assert_receiver_is_total_eq(&self)

impl PartialEq<UpvarId> for UpvarId

fn eq(&self, __arg_0: &UpvarId) -> bool

fn ne(&self, __arg_0: &UpvarId) -> bool

fn ne(&self, &UpvarId) -> bool

impl Copy for UpvarId

impl Clone for UpvarId

fn clone(&self) -> UpvarId

fn clone_from(&mut self, &UpvarId)