Type Alias cdragon_prop::BinHashMappers

source ·
pub type BinHashMappers = BinHashKindMapping<BinHashMapper, HashMapper<u64, 64>>;
Expand description

Hash mappers for all kinds of bin hashes

Each individual mapper can be accessed either directly through its field, or from a BinHashKind value.

Aliased Type§

struct BinHashMappers {
    pub entry_path: HashMapper<u32, 32>,
    pub class_name: HashMapper<u32, 32>,
    pub field_name: HashMapper<u32, 32>,
    pub hash_value: HashMapper<u32, 32>,
    pub path_value: HashMapper<u64, 64>,
}

Fields§

§entry_path: HashMapper<u32, 32>§class_name: HashMapper<u32, 32>§field_name: HashMapper<u32, 32>§hash_value: HashMapper<u32, 32>§path_value: HashMapper<u64, 64>

Implementations§

source§

impl BinHashMappers

source

pub fn from_dirpath(path: &Path) -> Result<Self, HashError>

Create mapper, load all sub-mappers from a directory path

source

pub fn load_dirpath(&mut self, path: &Path) -> Result<(), HashError>

Load all sub-mappers from a directory path

source

pub fn write_dirpath(&self, path: &Path) -> Result<(), HashError>

Write all sub-mappers to a directory path