Struct cpp_common::Closure[][src]

pub struct Closure {
    pub sig: ClosureSig,
    pub body: TokenTree,
    pub body_str: String,
    pub callback_offset: u32,
}

Fields

Trait Implementations

impl Clone for Closure
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Closure
[src]

Formats the value using the given formatter. Read more

impl Parse for Closure
[src]

Parse the inside of a cpp! macro when this macro is a closure. Example: `unsafe [foo as "int"] -> u32 as "int" { /*... */ }

Auto Trait Implementations

impl !Send for Closure

impl !Sync for Closure