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
8
9
10
11
12
use crate::records::dense_hash_set::DenseHashSet;
use crate::records::dense_hash_table::{DenseEq, DenseHasher};

#[allow(non_snake_case)]
pub fn dense_hash_set_insert<K, H, E>(set: &mut DenseHashSet<K, H, E>, key: K) -> &K
where
    K: Clone,
    H: DenseHasher<K> + Default,
    E: DenseEq<K> + Default,
{
    set.insert(key)
}