Skip to main content

luaur_ast/methods/
ast_array_rbegin.rs

1use crate::records::ast_array::AstArray;
2
3impl<T> AstArray<T> {
4    pub fn rbegin(&self) -> core::iter::Rev<core::slice::Iter<'_, T>> {
5        unsafe {
6            core::slice::from_raw_parts(self.data, self.size)
7                .iter()
8                .rev()
9        }
10    }
11}