Second, your implementation using Rc<Refcell<... is quite heavy. Look at the lru-cache crate and see how it's using a linked hashmap to do this efficiently. At least, you could try benchmarking those crates as a comparison to your implementation.
thank again. after i build a release
time: target/release/point24 0.03s user 0.01s system 70% cpu 0.044 total
and thank for lru-cache advise, for a depper research
Then your rust implementation is missing the garbage collector if it needs to be equivalent...
If you want to compare code in different languages follow the respective idioms and then do performance and readability benchmarks.
Do not try to enforce style of the original implementing language into the language you want to compare. That will almost always give results in favor of the original language.