MCPcopy Create free account
hub / github.com/RetypeOS/parcode / root

Method root

src/reader.rs:732–738  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls 1

root_nodeMethod · 0.80

Tested by

no test coverage detected