浏览代码

document generational box

ealmloff 1 年之前
父节点
当前提交
000edc0552
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/generational-box/README.md

+ 1 - 1
packages/generational-box/README.md

@@ -31,4 +31,4 @@ let store = Store::default();
 
 
 ## How it works
 ## How it works
 
 
-Internally
+Internally, `generational-box` creates an arena of generational RefCell's that are recyled when the owner is dropped. You can think of the cells as something like `&'static RefCell<Box<dyn Any>>` with some a generational check to make recyling a cell easier to debug. Then GenerationalBox's are `Copy` because the `&'static` pointer is `Copy`