memoires 🧠
The hardest way to implement memoization in Rust...
Usage
Lets imagine you have a function that implement Fibonacci sequence:
It gonna be change to:
use Memoire;
// The two generics of Memoire<usize, usize> must be change to the types
// your function will return.
//
// If you have a f(String) -> String, you gonna write Memoire<String, String>.
//
// IMPORTANT:
// - the input type must implement the Clone, Eq and Hash traits
// - the output type must implement the Clone trait
//