Struct rustc_lint::middle::ty::UpvarIdUnstable [-] [+] [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 Debug for UpvarId

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

impl Hash for UpvarId

fn hash<__H>(&self, __arg_0: &mut __H) where __H: Hasher

impl Eq for UpvarId

impl PartialEq<UpvarId> for UpvarId

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

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

impl Copy for UpvarId

impl Clone for UpvarId

fn clone(&self) -> UpvarId

fn clone_from(&mut self, source: &Self)