Commit graph

6 commits

Author SHA1 Message Date
Niko Matsakis
8b8dd53197 apply cargo clippy --fix 2024-08-20 10:09:49 -04:00
Niko Matsakis
6401563755 store memoized fn results attached to the salsa struct 2024-08-20 10:09:49 -04:00
Niko Matsakis
8b058be74f introduce Memo trait 2024-08-20 10:09:49 -04:00
Niko Matsakis
f12874fe62 store fn to create Arc<dyn Any> instead of drop
This will allow us to invoke callbacks when deleting
a memo with `Arc<dyn Any>` values.
2024-08-20 10:09:49 -04:00
Niko Matsakis
b5540f1122 add memo_table method to Slot trait
This returns the memos attached to a given slot.
Not all slots have affiliated memos, so return an `Option`.
2024-08-20 10:09:49 -04:00
Niko Matsakis
33a99da476 introduce memo table (first draft) 2024-08-20 10:09:49 -04:00