pyoe2-craftpath 0.5.1

A tool for Path of Exile 2 to find the best craftpaths based on the categories: *most likely, most efficient and cheapest*, between a starting item and a target item.
Documentation
use std::{
    collections::HashSet,
    hash::{Hash, Hasher},
};

use rustc_hash::{FxBuildHasher, FxHasher};

pub fn hash_set_unordered<T: Hash>(set: &HashSet<T, FxBuildHasher>) -> u64 {
    let mut combined: u64 = 0;
    for v in set {
        let mut h = FxHasher::default();
        v.hash(&mut h);
        combined ^= h.finish();
    }
    combined
}

pub fn hash_value<T: Hash>(value: &T) -> u64 {
    let mut hasher = FxHasher::default();
    value.hash(&mut hasher);
    hasher.finish()
}