pub trait Maps {
    type MPHF: SwhidMphf;
    type Perm: Permutation;
    type Memory: AsRef<[u8]>;

    // Required methods
    fn mphf(&self) -> &Self::MPHF;
    fn order(&self) -> &Self::Perm;
    fn node2swhid(&self) -> &Node2SWHID<Self::Memory>;
    fn node2type(&self) -> &Node2Type<UsizeMmap<Self::Memory>>;
}
Expand description

Trait for backend storage of maps (either in-memory, or loaded from disk and memory-mapped)

Required Associated Types§

Required Methods§

source

fn mphf(&self) -> &Self::MPHF

source

fn order(&self) -> &Self::Perm

source

fn node2swhid(&self) -> &Node2SWHID<Self::Memory>

source

fn node2type(&self) -> &Node2Type<UsizeMmap<Self::Memory>>

Implementors§

source§

impl Maps for VecMaps

source§

impl<MPHF: SwhidMphf> Maps for MappedMaps<MPHF>

§

type MPHF = MPHF

§

type Perm = MappedPermutation

§

type Memory = Mmap