#[non_exhaustive]pub enum Profile {
LuauCompat,
ReproducibleStandard,
DeterministicSim,
Puc51Compat,
}Expand description
Selects language compatibility and the allowed host capabilities.
Use builder presets for ordinary setup. live() uses
ReproducibleStandard with real host services.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
LuauCompat
Standalone Luau compatibility, including Luau-style table iteration.
ReproducibleStandard
Standalone Luau with reproducible defaults and insertion-ordered tables.
DeterministicSim
Replay-oriented execution that rejects external mutable-state capabilities.
Puc51Compat
PUC Lua 5.1.5 table layout, sorting, and number formatting.
Implementations§
Source§impl Profile
impl Profile
pub const fn is_deterministic_sim(self) -> bool
pub const fn is_luau_compat(self) -> bool
pub const fn is_puc51_compat(self) -> bool
Trait Implementations§
impl Copy for Profile
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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