Struct rustc::mir::UpvarDecl
[−]
[src]
pub struct UpvarDecl {
pub debug_name: Name,
pub by_ref: bool,
}🔬 This is a nightly-only experimental API. (
rustc_private)A closure capture, with its name and mode.
Fields
debug_name: Name
🔬 This is a nightly-only experimental API. (
rustc_private)by_ref: bool
🔬 This is a nightly-only experimental API. (
rustc_private)If true, the capture is behind a reference.
Trait Implementations
impl Clone for UpvarDecl[src]
fn clone(&self) -> UpvarDecl
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 Debug for UpvarDecl[src]
impl Encodable for UpvarDecl[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
🔬 This is a nightly-only experimental API. (rustc_private)
deprecated in favor of rustc-serialize on crates.io