Returns a Lazy Mirror of the root object. This operation is instant (O(1)) and incurs no I/O overhead. Data is only loaded when specific fields are accessed on the returned mirror.
(&'a self)
| 730 | /// This operation is instant (O(1)) and incurs no I/O overhead. |
| 731 | /// Data is only loaded when specific fields are accessed on the returned mirror. |
| 732 | pub fn root<'a, T>(&'a self) -> Result<T::Lazy> |
| 733 | where |
| 734 | T: ParcodeLazyRef<'a>, |
| 735 | { |
| 736 | let root = self.root_node()?; |
| 737 | T::create_lazy(root) |
| 738 | } |
| 739 | |
| 740 | /// Alias for `root()` for users who prefer explicit naming. |
| 741 | #[inline] |