luaur-vm 0.1.1

The Luau register virtual machine and standard library (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::records::temp_buffer::TempBuffer;
use luaur_common::macros::luau_assert::LUAU_ASSERT;

impl<T> TempBuffer<T> {
    pub fn operator_index(&self, index: usize) -> &mut T {
        LUAU_ASSERT!(index < self.count);
        unsafe { &mut *self.data.add(index) }
    }
}