Struct cbindgen::Library
[−]
[src]
pub struct Library<'a> { /* fields omitted */ }
A library contains all of the information needed to generate bindings for a rust library.
Methods
impl<'a> Library<'a>
[src]
fn load(crate_or_src: &str, config: &'a Config) -> Library<'a>
Parse the specified crate or source file and load #[repr(C)] types for binding generation.
fn resolve_path(&self, p: &String) -> Option<PathValue>
fn add_deps_for_path(&self, p: &String, out: &mut Vec<PathValue>)
fn add_deps_for_path_deps(&self, p: &String, out: &mut Vec<PathValue>)
fn generate(self) -> Result<BuiltBindings<'a>, String>
Build a bindings file from this rust library.
Trait Implementations
impl<'a> Debug for Library<'a>
[src]
impl<'a> Clone for Library<'a>
[src]
fn clone(&self) -> Library<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more