Struct rustc::ty::UpvarBorrow
[−]
[src]
pub struct UpvarBorrow {
pub kind: BorrowKind,
pub region: Region,
}Unstable (
rustc_private)Fields
kind: BorrowKind
Unstable (
rustc_private)The kind of borrow: by-ref upvars have access to shared immutable borrows, which are not part of the normal language syntax.
region: Region
Unstable (
rustc_private)Region of the resulting reference.
Trait Implementations
impl Debug for UpvarBorrow[src]
Derived Implementations
impl Copy for UpvarBorrow[src]
impl Clone for UpvarBorrow[src]
fn clone(&self) -> UpvarBorrow
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl PartialEq for UpvarBorrow[src]
fn eq(&self, __arg_0: &UpvarBorrow) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &UpvarBorrow) -> bool
This method tests for !=.