Struct cairo_lang_compiler::CompilerConfig
source · pub struct CompilerConfig<'c> {
pub diagnostics_reporter: DiagnosticsReporter<'c>,
pub replace_ids: bool,
pub inlining_strategy: InliningStrategy,
pub allowed_libfuncs_list_name: Option<String>,
pub add_statements_functions: bool,
}
Expand description
Configuration for the compiler.
Fields§
§diagnostics_reporter: DiagnosticsReporter<'c>
§replace_ids: bool
Replaces sierra ids with human-readable ones.
inlining_strategy: InliningStrategy
Disables inlining functions.
allowed_libfuncs_list_name: Option<String>
The name of the allowed libfuncs list to use in compilation. If None the default list of audited libfuncs will be used.
add_statements_functions: bool
Adds mapping used by cairo-profiler to cairo_lang_sierra::debug_info::Annotations in cairo_lang_sierra::debug_info::DebugInfo.
Trait Implementations§
source§impl<'c> Default for CompilerConfig<'c>
impl<'c> Default for CompilerConfig<'c>
source§fn default() -> CompilerConfig<'c>
fn default() -> CompilerConfig<'c>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'c> Freeze for CompilerConfig<'c>
impl<'c> !RefUnwindSafe for CompilerConfig<'c>
impl<'c> !Send for CompilerConfig<'c>
impl<'c> !Sync for CompilerConfig<'c>
impl<'c> Unpin for CompilerConfig<'c>
impl<'c> !UnwindSafe for CompilerConfig<'c>
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more