pub struct DeclOpt {
pub indentation: u32,
pub is_cpp: bool,
pub show_extended_annotations: bool,
pub include_types: bool,
pub desugar: bool,
}Expand description
Configuration options for generated code from debug info.
This structure configures how the debug information (DWARF/PDB) translated into an AST is generated.
Fields§
§indentation: u32§is_cpp: boolPrefer C++ syntax over C syntax.
If true, the output will use C++ features (e.g., bool keyword)
show_extended_annotations: boolEnable extended comments and annotations.
If true, the generated code will include comments containing low-level details such as memory addresses, offsets, type sizes, and original source locations.
include_types: boolInclude full type definitions.
If true, the output will contain the full definition of types (structs, enums, unions).
desugar: boolResolve type aliases (sugar).
If true, typedefs and type aliases are replaced by their underlying
canonical types (e.g., uint32_t might become unsigned int).
Trait Implementations§
impl Eq for DeclOpt
impl StructuralEq for DeclOpt
impl StructuralPartialEq for DeclOpt
Auto Trait Implementations§
impl RefUnwindSafe for DeclOpt
impl Send for DeclOpt
impl Sync for DeclOpt
impl Unpin for DeclOpt
impl UnwindSafe for DeclOpt
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