Skip to content

Instantly share code, notes, and snippets.

View wallabra's full-sized avatar

Gustavo Ramos Rehermann wallabra

View GitHub Profile
@wallabra
wallabra / grouped_slotmap.rs
Created February 16, 2025 18:25
Grouped Slotmap
#[derive(Clone, Debug)]
pub struct GroupedKey<K: Clone> {
group_key: K,
item_key: usize,
}
impl<K> GroupedKey<K> {
fn new(group_key: K, item_key: usize) -> Self {
Self {
group_key,