luaur-analysis 0.1.2

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
//! Node: `cxx:Method:Luau.Analysis:Analysis/include/Luau/Set.h:88:set_empty`
//! Source: `Analysis/include/Luau/Set.h:88-91` (hand-ported)

use crate::records::set::Set;

impl<T: Clone + core::hash::Hash + PartialEq> Set<T> {
    pub fn empty(&self) -> bool {
        self.entry_count == 0
    }
}