Whether this closure contains a typed root or range edits over a legacy graph. Unrelated legacy files keep their existing graph interpretation.
(&self, inode: Inode)
| 1414 | /// Whether this closure contains a typed root or range edits over a legacy |
| 1415 | /// graph. Unrelated legacy files keep their existing graph interpretation. |
| 1416 | pub fn has_visible_content(&self, inode: Inode) -> Result<bool> { |
| 1417 | if let Some(root) = self.txn.span_root(inode)? { |
| 1418 | return Ok(self.visible.contains(NodeId::new(root[0]))); |
| 1419 | } |
| 1420 | Ok(self.txn.legacy_span_enabled()? && self.expected.contains_key(&inode.get())) |
| 1421 | } |
| 1422 | |
| 1423 | /// Obtain byte-to-span mappings under this exact view closure. |
| 1424 | pub fn record_state(&self, inode: Inode) -> Result<Option<SpanRecordState>> { |
no test coverage detected