anonymous_table 0.3.3

A way to store data regardless of type
Documentation
// 
// These are accessors used to index into the table
//

use std::hash::{Hash, Hasher};

#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub struct TableIndex{pub(crate) row: usize, pub(crate) column: usize}

// A [RowName] links to a specific row
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub struct RowName(pub u32); 

// A [Tag] links to multiple rows
#[derive(Copy, Clone, Debug, Hash, Eq, PartialEq)]
pub struct Tag(pub u32);
impl Tag{
    pub const fn new(id: u32) -> Self{
        Self( id )
    }

    pub fn from_hash(id: impl Hash, hasher: &mut impl Hasher) -> Self{
        id.hash(hasher);
        Self(hasher.finish() as u32)
    }
}