pub struct LoadedSource { /* private fields */ }Expand description
Immutable source-plus-normalized-document owner returned by format loaders.
This type intentionally provides no mutable document reference and no
operation that separates live facts from a mutable Document.
Implementations§
Source§impl LoadedSource
impl LoadedSource
Sourcepub const fn document(&self) -> &Document
pub const fn document(&self) -> &Document
Borrow the normalized document without permitting mutation beside live facts.
Sourcepub fn source_facts(&self) -> SourceFactsViewV1<'_>
pub fn source_facts(&self) -> SourceFactsViewV1<'_>
Borrow the V1 facts together with the canonical existing source skeleton projection.
Sourcepub const fn dependency_closure(&self) -> &DependencyClosureV1
pub const fn dependency_closure(&self) -> &DependencyClosureV1
Borrow the bounded dependency closure captured during this same load.
Sourcepub fn into_document(self) -> Document
pub fn into_document(self) -> Document
Consume the owner and deliberately discard importer-sensitive source facts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadedSource
impl RefUnwindSafe for LoadedSource
impl Send for LoadedSource
impl Sync for LoadedSource
impl Unpin for LoadedSource
impl UnsafeUnpin for LoadedSource
impl UnwindSafe for LoadedSource
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