pub struct BindingOptions {
pub module_name: Option<String>,
pub include_paths: Vec<PathBuf>,
pub allowlist_functions: Vec<String>,
pub allowlist_types: Vec<String>,
pub derive_debug: bool,
pub derive_default: bool,
}Expand description
Options for binding generation.
Fields§
§module_name: Option<String>Module name for the generated bindings.
include_paths: Vec<PathBuf>Additional include paths.
allowlist_functions: Vec<String>Functions to allowlist (if empty, include all).
allowlist_types: Vec<String>Types to allowlist (if empty, include all).
derive_debug: boolGenerate impl blocks for types.
derive_default: boolGenerate Default impl.
Trait Implementations§
Source§impl Clone for BindingOptions
impl Clone for BindingOptions
Source§fn clone(&self) -> BindingOptions
fn clone(&self) -> BindingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BindingOptions
impl Debug for BindingOptions
Source§impl Default for BindingOptions
impl Default for BindingOptions
Source§fn default() -> BindingOptions
fn default() -> BindingOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BindingOptions
impl RefUnwindSafe for BindingOptions
impl Send for BindingOptions
impl Sync for BindingOptions
impl Unpin for BindingOptions
impl UnsafeUnpin for BindingOptions
impl UnwindSafe for BindingOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more