Skip to main content

luaur_ast/methods/
ast_array_end.rs

1use crate::records::ast_array::AstArray;
2
3impl<T> AstArray<T> {
4    pub fn end(&self) -> *const T {
5        if self.data.is_null() {
6            core::ptr::null()
7        } else {
8            unsafe { self.data.add(self.size) }
9        }
10    }
11}