luaur-ast 0.1.3

Lexer, parser, and AST for Luau (faithful Rust port).
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::records::ast_array::AstArray;

impl<T> AstArray<T> {
    pub fn rbegin(&self) -> core::iter::Rev<core::slice::Iter<'_, T>> {
        unsafe {
            core::slice::from_raw_parts(self.data, self.size)
                .iter()
                .rev()
        }
    }
}