pub struct AutoZigConfig {
pub zig_code: String,
pub external_file: Option<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 parsed from autozig! macro
Fields§
§zig_code: StringRaw Zig code to be compiled (for embedded mode)
external_file: Option<String>External Zig file path (for include mode)
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 (Phase 1: stateless traits)
Implementations§
Source§impl AutoZigConfig
impl AutoZigConfig
Sourcepub fn get_mod_name(&self) -> &str
pub fn get_mod_name(&self) -> &str
Get the module name for generated bindings
Sourcepub fn has_rust_signatures(&self) -> bool
pub fn has_rust_signatures(&self) -> bool
Check if this config has any Rust signatures
Sourcepub fn is_external_mode(&self) -> bool
pub fn is_external_mode(&self) -> bool
Check if this config uses external file
Trait Implementations§
Source§impl Clone for AutoZigConfig
impl Clone for AutoZigConfig
Source§fn clone(&self) -> AutoZigConfig
fn clone(&self) -> AutoZigConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 AutoZigConfig
impl Debug for AutoZigConfig
Source§impl Parse for AutoZigConfig
impl Parse for AutoZigConfig
fn parse(input: ParseStream<'_>) -> ParseResult<Self>
Auto Trait Implementations§
impl Freeze for AutoZigConfig
impl RefUnwindSafe for AutoZigConfig
impl !Send for AutoZigConfig
impl !Sync for AutoZigConfig
impl Unpin for AutoZigConfig
impl UnwindSafe for AutoZigConfig
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