[][src]Struct bindgen::CodegenConfig

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]

pub fn all() -> Self[src]

Generate all kinds of items.

pub fn nothing() -> Self[src]

Generate nothing.

Trait Implementations

impl Clone for CodegenConfig[src]

impl Debug for CodegenConfig[src]

impl Default for CodegenConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for CodegenConfig

impl Send for CodegenConfig

impl Sync for CodegenConfig

impl Unpin for CodegenConfig

impl UnwindSafe for CodegenConfig

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.