Struct rustc::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<'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

impl Decodable for UpvarBorrow

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

impl Encodable for UpvarBorrow

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

impl Clone for UpvarBorrow

fn clone(&self) -> UpvarBorrow

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

impl PartialEq for UpvarBorrow

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

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