pub struct LoadedDoc {
pub canonical_path: PathBuf,
pub root: Arc<Value>,
}Fields§
§canonical_path: PathBuf§root: Arc<Value>Shared handle to the loaded document. Reference-counted so repeated loads of the same logical document are a refcount bump, not a deep clone of the whole (potentially multi-hundred-KB) JSON tree.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedDoc
impl RefUnwindSafe for LoadedDoc
impl Send for LoadedDoc
impl Sync for LoadedDoc
impl Unpin for LoadedDoc
impl UnsafeUnpin for LoadedDoc
impl UnwindSafe for LoadedDoc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more