Struct cbindgen::Library
[−]
[src]
pub struct Library<'a> { /* fields omitted */ }
A library collects all of the information needed to generate bindings for a specified rust library. It is turned into a GeneratedLibrary, and in the process filters out unneeded information and in the future will do validation.
Methods
impl<'a> Library<'a>
[src]
fn load(crate_or_src: &str, config: &'a Config) -> Library<'a>
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<GeneratedLibrary<'a>, String>
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