jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.57k stars 95 forks source link

Support clone types and sync writes result fallback #186

Closed Raz-Hemo closed 7 months ago

Raz-Hemo commented 8 months ago

As a followup to https://github.com/jaemk/cached/pull/177, i changed the code a bit in my fork to work for types that are Clone but not necessarily Copy, and explicitly fail to compile when using result_fallback with the incompatible sync_writes flag.

Would be cool to merge this whenever :)

jaemk commented 7 months ago

Thanks @Raz-Hemo !