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
use crate::records::small_vector::SmallVector;

impl<T, const N: usize> SmallVector<T, N> {
    pub fn end_mut(&mut self) -> *mut T {
        let slice = self.as_mut_slice();
        unsafe { slice.as_mut_ptr().add(slice.len()) }
    }
}