Struct cbindgen::DirectiveSet
[−]
[src]
pub struct DirectiveSet { /* fields omitted */ }
A simple system for specifying properties on items
a directive is given by cbindgen:PROPERTY=VALUE where PROPERTY depends on the item where VALUE can be
- list - [item1, item2, item3]
- atom - foo
- bool - true,false Examples:
- cbindgen:field-names=[mHandle, mNamespace]
- cbindgen:function-postfix=WR_DESTRUCTOR_SAFE
Methods
impl DirectiveSet
[src]
fn new() -> DirectiveSet
fn parse(text: String) -> Result<DirectiveSet, String>
fn list(&self, name: &str) -> Option<Vec<String>>
fn atom(&self, name: &str) -> Option<Option<String>>
fn bool(&self, name: &str) -> Option<bool>
Trait Implementations
impl Debug for DirectiveSet
[src]
impl Clone for DirectiveSet
[src]
fn clone(&self) -> DirectiveSet
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