Struct bindgen::CodegenConfig [−][src]
pub struct CodegenConfig { pub functions: bool, pub types: bool, pub vars: bool, pub methods: bool, pub constructors: bool, pub destructors: bool, }
A type used to indicate which kind of items do we have to generate.
TODO(emilio): Use bitflags!
Fields
functions: bool
Whether to generate functions.
types: bool
Whether to generate types.
vars: bool
Whether to generate constants.
methods: bool
Whether to generate methods.
constructors: bool
Whether to generate constructors.
destructors: bool
Whether to generate destructors.
Methods
impl CodegenConfig
[src]
impl CodegenConfig
pub fn all() -> Self
[src]
pub fn all() -> Self
Generate all kinds of items.
pub fn nothing() -> Self
[src]
pub fn nothing() -> Self
Generate nothing.
Trait Implementations
impl Debug for CodegenConfig
[src]
impl Debug for CodegenConfig
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for CodegenConfig
[src]
impl Clone for CodegenConfig
fn clone(&self) -> CodegenConfig
[src]
fn clone(&self) -> CodegenConfig
Returns 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 Default for CodegenConfig
[src]
impl Default for CodegenConfig
Auto Trait Implementations
impl Send for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Sync for CodegenConfig