Struct cpp_common::Closure [−][src]
pub struct Closure {
pub sig: ClosureSig,
pub body: TokenTree,
pub body_str: String,
pub callback_offset: u32,
}Fields
sig: ClosureSig
body: TokenTree
body_str: String
callback_offset: u32
Trait Implementations
impl Clone for Closure[src]
impl Clone for Closurefn clone(&self) -> Closure[src]
fn clone(&self) -> ClosureReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Debug for Closure[src]
impl Debug for Closurefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Parse for Closure[src]
impl Parse for Closurefn parse(input: ParseStream) -> Result<Self>[src]
fn parse(input: ParseStream) -> Result<Self>Parse the inside of a cpp! macro when this macro is a closure. Example: `unsafe [foo as "int"] -> u32 as "int" { /*... */ }