Struct bindgen::Bindings
[−]
[src]
pub struct Bindings<'ctx> { /* fields omitted */ }
Generated Rust bindings.
Methods
impl<'ctx> Bindings<'ctx>
[src]
fn generate(
options: BindgenOptions,
span: Option<Span>
) -> Result<Bindings<'ctx>, ()>
options: BindgenOptions,
span: Option<Span>
) -> Result<Bindings<'ctx>, ()>
Deprecated
Generate bindings for the given options.
Deprecated - use a Builder
instead
fn into_ast(self) -> Vec<P<Item>>
Convert these bindings into a Rust AST.
fn to_string(&self) -> String
Convert these bindings into source text (with raw lines prepended).
fn write_to_file<P: AsRef<Path>>(&self, path: P) -> Result<()>
Write these bindings as source text to a file.
fn write<'a>(&self, writer: Box<Write + 'a>) -> Result<()>
Write these bindings as source text to the given Write
able.