pub struct Bindings {
pub config: Config,
pub globals: Vec<Static>,
pub constants: Vec<Constant>,
pub items: Vec<ItemContainer>,
pub functions: Vec<Function>,
pub package_version: String,
/* private fields */
}Expand description
A bindings header that can be written.
Fields§
§config: Config§globals: Vec<Static>§constants: Vec<Constant>§items: Vec<ItemContainer>§functions: Vec<Function>§package_version: StringImplementations§
Source§impl Bindings
impl Bindings
pub fn struct_is_transparent(&self, path: &BindgenPath) -> bool
pub fn struct_exists(&self, path: &BindgenPath) -> bool
pub fn struct_field_names(&self, path: &BindgenPath) -> Rc<Vec<String>>
Sourcepub fn dynamic_symbols_names(&self) -> impl Iterator<Item = &str>
pub fn dynamic_symbols_names(&self) -> impl Iterator<Item = &str>
Lists the exported symbols that can be dynamically linked, i.e. globals and functions.
pub fn generate_symfile<P: AsRef<Path>>(&self, symfile_path: P)
pub fn generate_depfile<P: AsRef<Path>>(&self, header_path: P, depfile_path: P)
pub fn write_to_file<P: AsRef<Path>>(&self, path: P) -> bool
pub fn write<F: Write>(&self, file: F)
Auto Trait Implementations§
impl !Freeze for Bindings
impl !RefUnwindSafe for Bindings
impl !Send for Bindings
impl !Sync for Bindings
impl Unpin for Bindings
impl UnwindSafe for Bindings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more