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
use crate::records::vec_deque::VecDeque;

impl<T> VecDeque<T> {
    pub fn is_contiguous(&self) -> bool {
        self.head <= self.capacity() - self.queue_size
    }
}