pub struct IncludeZigConfig {
pub file_path: String,
pub rust_signatures: Vec<RustFunctionSignature>,
pub rust_structs: Vec<RustStructDefinition>,
pub rust_enums: Vec<RustEnumDefinition>,
pub rust_trait_impls: Vec<RustTraitImpl>,
}Expand description
Configuration for include_zig! macro (external file mode)
Fields§
§file_path: StringPath to external Zig file (relative to cargo manifest dir)
rust_signatures: Vec<RustFunctionSignature>Rust function signatures for safe wrappers
rust_structs: Vec<RustStructDefinition>Rust struct definitions for FFI types
rust_enums: Vec<RustEnumDefinition>Rust enum definitions for FFI types
rust_trait_impls: Vec<RustTraitImpl>Rust trait implementations
Implementations§
Source§impl IncludeZigConfig
impl IncludeZigConfig
Sourcepub fn get_mod_name(&self) -> &str
pub fn get_mod_name(&self) -> &str
Get the module name for generated bindings
Sourcepub fn get_unique_mod_name(&self) -> String
pub fn get_unique_mod_name(&self) -> String
Get a unique module name based on the file path Example: “zig/math.zig” -> “ffi_zig_math”
Sourcepub fn has_rust_signatures(&self) -> bool
pub fn has_rust_signatures(&self) -> bool
Check if this config has any Rust signatures
Trait Implementations§
Source§impl Clone for IncludeZigConfig
impl Clone for IncludeZigConfig
Source§fn clone(&self) -> IncludeZigConfig
fn clone(&self) -> IncludeZigConfig
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 IncludeZigConfig
impl Debug for IncludeZigConfig
Source§impl Parse for IncludeZigConfig
impl Parse for IncludeZigConfig
fn parse(input: ParseStream<'_>) -> ParseResult<Self>
Auto Trait Implementations§
impl !Send for IncludeZigConfig
impl !Sync for IncludeZigConfig
impl Freeze for IncludeZigConfig
impl RefUnwindSafe for IncludeZigConfig
impl Unpin for IncludeZigConfig
impl UnsafeUnpin for IncludeZigConfig
impl UnwindSafe for IncludeZigConfig
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