luaur-common 0.1.3

Foundational data structures and flags for the luaur Luau-in-Rust toolchain.
Documentation
1
2
3
4
5
6
7
8
9
10
use core::mem;

pub fn variant_fn_move() {
    // This C++ function is a low-level placement-new move used to implement
    // Variant alternative moves via raw memory operations.
    //
    // In this Rust port, moves are naturally handled by Rust assignment and
    // enum variant moves, so this function is intentionally a no-op.
    let _ = mem::size_of::<()>(); // keep a side-effect-free use of `core`
}