memoise

Simple memoization library for rust
Documentation
Find it on docs.rs.
Usage
Add this to your Cargo.toml
:
[]
= "0.2"
And then, just add memoise
attribute to functions you want to memoise:
use memoise;
And you can call it normally:
And run it:
If comment out memoise
attribute, it will not be memoised.
// #[memoise(n <= 100)]
For more information, you can find a document on docs.rs.