Struct cmacros::CMacro
[−]
[src]
pub struct CMacro { pub name: String, pub args: Option<Vec<String>>, pub body: Option<String>, }
Macro definition parsed from a C header file
Fields
name: String
The name of the macro
args: Option<Vec<String>>
The arguments to the macro if it is a function-like macro
body: Option<String>
The text that the macro expands to
Methods
impl CMacro
[src]
fn new(name: &str, body: Option<&str>) -> CMacro
fn new_with_args(name: &str, args: Vec<&str>, body: &str) -> CMacro
Trait Implementations
impl PartialEq for CMacro
[src]
fn eq(&self, __arg_0: &CMacro) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &CMacro) -> bool
This method tests for !=
.