Skip to main content

luaur_ast/methods/
temp_vector_end.rs

1use crate::records::temp_vector::TempVector;
2
3impl<'a, T> TempVector<'a, T> {
4    pub fn end(&self) -> *const T {
5        unsafe { (*self.storage).as_ptr().add(self.offset + self.size_) }
6    }
7}
8
9#[allow(non_snake_case)]
10pub fn temp_vector_end<'a, T>(vector: &TempVector<'a, T>) -> *const T {
11    vector.end()
12}