Struct cbindgen::Library
[−]
[src]
pub struct Library { /* fields omitted */ }
A library contains all of the information needed to generate bindings for a rust library.
Methods
impl Library
[src]
fn load_src(src: &Path, config: &Config) -> Result<Library, String>
Parse the specified crate or source file and load #[repr(C)] types for binding generation.
fn load_crate(lib: Cargo, config: &Config) -> Result<Library, String>
Parse the specified crate or source file and load #[repr(C)] types for binding generation.
fn resolve_path(&self, p: &String) -> Option<PathValue>
fn generate(self) -> Result<GeneratedBindings, String>
Build a bindings file from this rust library.
Trait Implementations
impl Debug for Library
[src]
impl Clone for Library
[src]
fn clone(&self) -> Library
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