pub struct IdrisCodegenConfig {
pub emit_docs: bool,
pub emit_logging: bool,
pub default_totality: Totality,
pub auto_inline: bool,
pub auto_inline_limit: usize,
pub emit_name_pragmas: bool,
pub emit_header_comment: bool,
pub target_backend: String,
}Expand description
Configuration controlling how Idris 2 code is generated.
Fields§
§emit_docs: boolWhether to emit docstring comments.
emit_logging: boolWhether to emit %logging pragmas for debugging.
default_totality: TotalityDefault totality annotation.
auto_inline: boolWhether to emit %inline on small functions.
auto_inline_limit: usizeMaximum body size (in lines) for auto-inlining.
emit_name_pragmas: boolWhether to add %name pragmas.
emit_header_comment: boolWhether to emit a module header comment.
target_backend: StringTarget backend: "chez", "node", "refc", etc.
Trait Implementations§
Source§impl Clone for IdrisCodegenConfig
impl Clone for IdrisCodegenConfig
Source§fn clone(&self) -> IdrisCodegenConfig
fn clone(&self) -> IdrisCodegenConfig
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 IdrisCodegenConfig
impl Debug for IdrisCodegenConfig
Auto Trait Implementations§
impl Freeze for IdrisCodegenConfig
impl RefUnwindSafe for IdrisCodegenConfig
impl Send for IdrisCodegenConfig
impl Sync for IdrisCodegenConfig
impl Unpin for IdrisCodegenConfig
impl UnsafeUnpin for IdrisCodegenConfig
impl UnwindSafe for IdrisCodegenConfig
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