pub struct CompilerSettings {
pub export_top_level_ids: bool,
pub enable_type_checks: bool,
}Expand description
The settings used by the Compiler
Fields§
§export_top_level_ids: boolWhether or not top-level identifiers should be automatically exported
The default behaviour in Koto is that export expressions are required to make a value
available outside of the current module.
This is used by the REPL, allowing for incremental compilation and execution of expressions that need to share declared values.
enable_type_checks: boolWhen enabled, the compiler will emit type check instructions when type hints are encountered that will be performed at runtime.
Enabled by default.
Trait Implementations§
Source§impl Clone for CompilerSettings
impl Clone for CompilerSettings
Source§fn clone(&self) -> CompilerSettings
fn clone(&self) -> CompilerSettings
Returns a copy 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 Default for CompilerSettings
impl Default for CompilerSettings
impl Copy for CompilerSettings
Auto Trait Implementations§
impl Freeze for CompilerSettings
impl RefUnwindSafe for CompilerSettings
impl Send for CompilerSettings
impl Sync for CompilerSettings
impl Unpin for CompilerSettings
impl UnwindSafe for CompilerSettings
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