pub struct CEmitConfig {
pub emit_comments: bool,
pub inline_small: bool,
pub use_rc: bool,
pub indent: String,
pub module_name: String,
pub use_static: bool,
}Expand description
Configuration for the C code emitter.
Fields§
§emit_comments: boolWhether to emit comments in the generated code.
inline_small: boolWhether to inline small functions.
use_rc: boolWhether to emit reference counting operations.
indent: StringIndentation string (e.g. two spaces or a tab).
module_name: StringModule name for the header guard.
use_static: boolWhether to emit static qualifiers for internal functions.
Trait Implementations§
Source§impl Clone for CEmitConfig
impl Clone for CEmitConfig
Source§fn clone(&self) -> CEmitConfig
fn clone(&self) -> CEmitConfig
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 CEmitConfig
impl Debug for CEmitConfig
Auto Trait Implementations§
impl Freeze for CEmitConfig
impl RefUnwindSafe for CEmitConfig
impl Send for CEmitConfig
impl Sync for CEmitConfig
impl Unpin for CEmitConfig
impl UnsafeUnpin for CEmitConfig
impl UnwindSafe for CEmitConfig
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