Silent missing documentation warning
@@ -44,8 +44,11 @@ impl<T: IndexAccess> fmt::Debug for View<T> {
}
}
+/// TODO: add documentation [ECR-2820]
pub trait ChangeSet {
+ /// TODO: add documentation [ECR-2820]
fn as_ref(&self) -> Option<&ViewChanges>;
+ /// TODO: add documentation [ECR-2820]
fn as_mut(&mut self) -> Option<&mut ViewChanges>;
}
@@ -67,16 +70,13 @@ impl ChangeSet for ChangesRef<'_> {
}
}
+/// TODO: add documentation [ECR-2820]
pub trait IndexAccess: Clone {
+ /// TODO: add documentation [ECR-2820]
type Changes: ChangeSet;
-
- fn root(&self) -> &str {
- ""
- }
+ /// TODO: add documentation [ECR-2820]
fn snapshot(&self) -> &dyn Snapshot;
- #[allow(unsafe_code)]
- #[doc(hidden)]
- unsafe fn fork(self) -> Option<&'static Fork>;
+ /// TODO: add documentation [ECR-2820]
fn changes(&self, address: &IndexAddress) -> Self::Changes;
}
