pub struct CompileOptions {
pub optimization_level: u8,
pub debug_level: u8,
pub coverage_level: u8,
}Expand description
Public compile policy for Ruau VM bytecode.
This is the ordinary embedder-facing surface: it keeps VM-safe hardening
enabled and exposes only the knobs that are meaningful for current pinned
Luau compilation. Upstream fixture compatibility uses
[UpstreamCompilerOptions].
Fields§
§optimization_level: u8Upstream optimization level.
debug_level: u8Upstream debug level.
coverage_level: u8Upstream coverage level.
Implementations§
Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§fn clone(&self) -> CompileOptions
fn clone(&self) -> CompileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CompileOptions
impl Debug for CompileOptions
Source§impl Default for CompileOptions
impl Default for CompileOptions
Source§impl<'de> Deserialize<'de> for CompileOptionswhere
CompileOptions: Default,
impl<'de> Deserialize<'de> for CompileOptionswhere
CompileOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CompileOptions
impl PartialEq for CompileOptions
Source§fn eq(&self, other: &CompileOptions) -> bool
fn eq(&self, other: &CompileOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CompileOptions
impl Serialize for CompileOptions
impl StructuralPartialEq for CompileOptions
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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