Struct rustc_lint::middle::mem_categorization::UpvarUnstable [-] [+] [src]

pub struct Upvar {
    pub id: UpvarId,
    pub kind: ClosureKind,
}

Fields

id
kind

Trait Implementations

impl<'tcx> Repr<'tcx> for Upvar

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

impl<'tcx> UserString<'tcx> for Upvar

fn user_string(&self, &ctxt) -> String

Derived Implementations

impl Debug for Upvar

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

impl PartialEq<Upvar> for Upvar

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

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

impl Copy for Upvar

impl Clone for Upvar

fn clone(&self) -> Upvar

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