Struct rustc_lint::middle::ty::UpvarBorrowUnstable [-] [+] [src]

pub struct UpvarBorrow {
    pub kind: BorrowKind,
    pub region: Region,
}

Fields

kind

The kind of borrow: by-ref upvars have access to shared immutable borrows, which are not part of the normal language syntax.

region

Region of the resulting reference.

Trait Implementations

impl tr for UpvarBorrow

fn tr(&self, dcx: &DecodeContext) -> UpvarBorrow

impl<'tcx> Repr<'tcx> for UpvarBorrow

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

Derived Implementations

impl Copy for UpvarBorrow

impl Debug for UpvarBorrow

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

impl Decodable for UpvarBorrow

fn decode<__D>(__arg_0: &mut __D) -> Result<UpvarBorrow, __D::Error> where __D: Decoder

impl Encodable for UpvarBorrow

fn encode<__S>(&self, __arg_0: &mut __S) -> Result<(), __S::Error> where __S: Encoder

impl Clone for UpvarBorrow

fn clone(&self) -> UpvarBorrow

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

impl PartialEq<UpvarBorrow> for UpvarBorrow

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

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