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 CodegenConfigpub fn all() -> Self[src]
pub fn all() -> SelfGenerate all kinds of items.
pub fn nothing() -> Self[src]
pub fn nothing() -> SelfGenerate nothing.
Trait Implementations
impl Debug for CodegenConfig[src]
impl Debug for CodegenConfigfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for CodegenConfig[src]
impl Clone for CodegenConfigfn clone(&self) -> CodegenConfig[src]
fn clone(&self) -> CodegenConfigReturns 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 CodegenConfigAuto Trait Implementations
impl Send for CodegenConfig
impl Send for CodegenConfigimpl Sync for CodegenConfig
impl Sync for CodegenConfig