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 anyhow::Result;

use crate::api::{
    calculator::PropagationTarget,
    currency::CraftCurrencyList,
    item::{Item, ItemSnapshot},
    provider::item_info::ItemInfoProvider,
    types::THashMap,
};

pub trait MatrixPropagator {
    fn propagate_step(
        &self,
        item_instance: &Item,
        target_item: &ItemSnapshot,
        provider: &ItemInfoProvider,
    ) -> Result<THashMap<CraftCurrencyList, Vec<PropagationTarget>>>;

    fn is_applicable(&self, item: &Item, provider: &ItemInfoProvider) -> bool;
}