fix read and write impls

This commit is contained in:
Evan Almloff committed 2023-11-03 10:27:21 -05:00
1 parent 0a8de1d40f
commit ebbaacf073
4 files changed
+182 -103

No files matched your search

+1 -2
View File
@@ -41,11 +41,10 @@ fn owner_in_scope<S: Storage<T>, T>(scope: ScopeId) -> Rc<Owner<S>> {
// }
}
#[derive(Debug)]
/// CopyValue is a wrapper around a value to make the value mutable and Copy.
///
/// It is internally backed by [`generational_box::GenerationalBox`].
pub struct CopyValue<T: 'static, S: AnyStorage> {
pub struct CopyValue<T: 'static, S: Storage<T>> {
pub(crate) value: GenerationalBox<T, S>,
origin_scope: ScopeId,
}