pub struct CCodeGenConfig {
pub synta_header_path: Option<String>,
pub generate_helpers: bool,
pub arena_mode: bool,
}Expand description
Configuration options for C code generation
Fields§
§synta_header_path: Option<String>Include path for synta.h (default: “synta.h”)
generate_helpers: boolAdd static inline functions for common operations
arena_mode: boolGenerate SyntaArena type and _decode_arena() prototypes
Implementations§
Source§impl CCodeGenConfig
impl CCodeGenConfig
Sourcepub fn with_header_path(path: impl Into<String>) -> Self
pub fn with_header_path(path: impl Into<String>) -> Self
Create config with custom synta header path
Sourcepub fn with_helpers(self) -> Self
pub fn with_helpers(self) -> Self
Enable generating helper functions
Sourcepub fn with_arena(self) -> Self
pub fn with_arena(self) -> Self
Enable arena/bump allocator mode
Trait Implementations§
Source§impl Clone for CCodeGenConfig
impl Clone for CCodeGenConfig
Source§fn clone(&self) -> CCodeGenConfig
fn clone(&self) -> CCodeGenConfig
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 CCodeGenConfig
impl Debug for CCodeGenConfig
Source§impl Default for CCodeGenConfig
impl Default for CCodeGenConfig
Source§fn default() -> CCodeGenConfig
fn default() -> CCodeGenConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CCodeGenConfig
impl RefUnwindSafe for CCodeGenConfig
impl Send for CCodeGenConfig
impl Sync for CCodeGenConfig
impl Unpin for CCodeGenConfig
impl UnsafeUnpin for CCodeGenConfig
impl UnwindSafe for CCodeGenConfig
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