pub struct CImplConfig {
pub header_file: String,
pub arena_mode: bool,
pub pattern_mode: PatternMode,
pub with_containing: bool,
}Expand description
Configuration for C implementation generation
Fields§
§header_file: StringHeader file to include
arena_mode: boolGenerate _decode_arena() variants
pattern_mode: PatternModeControls PATTERN constraint validation (default: PatternMode::Skip)
with_containing: boolEmit CONTAINING constraint validation using a scratch decoder (default: false).
When true, fields constrained with CONTAINING InnerType emit a
synta_decoder_new / inner_type_decode / synta_decoder_free block
that verifies the bytes actually hold a valid DER-encoded InnerType.
Trait Implementations§
Source§impl Clone for CImplConfig
impl Clone for CImplConfig
Source§fn clone(&self) -> CImplConfig
fn clone(&self) -> CImplConfig
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 CImplConfig
impl Debug for CImplConfig
Source§impl Default for CImplConfig
impl Default for CImplConfig
Source§fn default() -> CImplConfig
fn default() -> CImplConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CImplConfig
impl RefUnwindSafe for CImplConfig
impl Send for CImplConfig
impl Sync for CImplConfig
impl Unpin for CImplConfig
impl UnsafeUnpin for CImplConfig
impl UnwindSafe for CImplConfig
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