Struct libbindgen::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>, ()>
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.
fn write_dummy_uses(&mut self) -> Result<()>
Generate and write dummy uses of all the types we parsed, if we've been requested to do so in the options.
See the uses
module for more information.