pub struct Builder { /* private fields */ }Expand description
A builder for generating a bindings header
Implementations§
source§impl Builder
impl Builder
sourcepub fn output_dir(&mut self, output_dir: impl AsRef<Path>) -> &mut Self
pub fn output_dir(&mut self, output_dir: impl AsRef<Path>) -> &mut Self
Set path to output directory
sourcepub fn clang_resource_dir(
&mut self,
clang_resource_dir: impl AsRef<Path>,
) -> &mut Self
pub fn clang_resource_dir( &mut self, clang_resource_dir: impl AsRef<Path>, ) -> &mut Self
Set resource directory to clang
sourcepub fn symbol_regex(&mut self, symbol_regex: &Regex) -> &mut Self
pub fn symbol_regex(&mut self, symbol_regex: &Regex) -> &mut Self
Set pattern to match symbol
sourcepub fn loader_basename(&mut self, loader_basename: &str) -> &mut Self
pub fn loader_basename(&mut self, loader_basename: &str) -> &mut Self
Set basename of the loader module
sourcepub fn symbol_prefix(&mut self, symbol_prefix: &str) -> &mut Self
pub fn symbol_prefix(&mut self, symbol_prefix: &str) -> &mut Self
Set symbol prefix
sourcepub fn function_prefix(&mut self, function_prefix: &str) -> &mut Self
pub fn function_prefix(&mut self, function_prefix: &str) -> &mut Self
Set function prefix
sourcepub fn function_wrapper(&mut self, function_wrapper: &str) -> &mut Self
pub fn function_wrapper(&mut self, function_wrapper: &str) -> &mut Self
Set name of the function wrapper macro
sourcepub fn header_guard(&mut self, header_guard: &str) -> &mut Self
pub fn header_guard(&mut self, header_guard: &str) -> &mut Self
Set name of the header guard macro
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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