Trait swh_graph::properties::Maps
source · 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)