Crate cdragon_hashes

Crate cdragon_hashes 

Source
Expand description

Tools to work with hashes, as used by cdragon

Actual hash values are created with crate::define_hash_type!(), which implements HashDef and conversions.

HashMapper manages a mapping to retrieve a string from a hash value. The type provides methods to load mapping files, check for known hashes, etc. update mapping files, etc.

Modules§

bin
Hashes used in PROP files (bin files)
rst
Hashes used in RST files
wad
Hashes used in WAD archives

Macros§

binh
Helper for const, inline computation of bin hashes, with implicit conversion
define_hash_type
Define a hash type wrapping an integer hash value

Structs§

HashMapper
Store hash-to-string association for a hash value

Enums§

HashError
Hash related error
HashKind
Each kind of hash handled by CDragon
HashOrStr
Either a hash or its associated string

Traits§

HashDef
Trait for hash values types