Expand description
Options that can be provided to the compiler.
See Build::with_options.
Fields
bytecode: boolSupport (experimental) bytecode caching.
cfg_test: boolCompile for and enable test features
v2: boolUse the second version of the compiler in parallel.
Implementations
sourceimpl Options
impl Options
sourcepub fn parse_option(&mut self, option: &str) -> Result<(), ParseOptionError>
pub fn parse_option(&mut self, option: &str) -> Result<(), ParseOptionError>
Parse a compiler option. This is the function which parses the
<option>[=<value>] syntax, which is used by among other things the
Rune CLI with the -O <option>[=<value>] option.
It can be used to consistenly parse a collection of options by other programs as well.
sourcepub fn debug_info(&mut self, enabled: bool)
pub fn debug_info(&mut self, enabled: bool)
Set if debug info is enabled or not. Defaults to true.
sourcepub fn link_checks(&mut self, enabled: bool)
pub fn link_checks(&mut self, enabled: bool)
Set if link checks are enabled or not. Defaults to true. This will
cause compilation to fail if an instruction references a function which
does not exist.
sourcepub fn bytecode(&mut self, enabled: bool)
pub fn bytecode(&mut self, enabled: bool)
Set if bytecode caching is enabled or not. Defaults to false.
sourcepub fn memoize_instance_fn(&mut self, enabled: bool)
pub fn memoize_instance_fn(&mut self, enabled: bool)
Memoize the instance function in a loop. Defaults to false.
Trait Implementations
impl Copy for Options
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more