pub trait BestPathCalculator<C: Currency, A: Amount, P: Provider> {
// Required method
fn calc_best_paths(
pairs_and_prices: &[(ProviderPair<C, P>, A)],
) -> Result<PricePathGraph<C, A, P>, CalculatorError>;
}Expand description
Interface for calculating best PricePathGraph, which consists of PricePath chained in most trade efficient manner.
Required Methods§
fn calc_best_paths( pairs_and_prices: &[(ProviderPair<C, P>, A)], ) -> Result<PricePathGraph<C, A, P>, CalculatorError>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.