pub struct LoadedDocumentScope { /* private fields */ }Expand description
A logical scope together with the loaded documents in matching order.
Implementations§
Source§impl LoadedDocumentScope
impl LoadedDocumentScope
Sourcepub const fn scope(&self) -> &ResolvedDocumentScope
pub const fn scope(&self) -> &ResolvedDocumentScope
Logical graph and source coverage in the loader’s stable order.
Sourcepub fn documents(&self) -> &[ResolvedContent]
pub fn documents(&self) -> &[ResolvedContent]
Immutable original content paired with the logical graph.
Sourcepub fn into_parts(self) -> (ResolvedDocumentScope, Vec<ResolvedContent>)
pub fn into_parts(self) -> (ResolvedDocumentScope, Vec<ResolvedContent>)
Transfer ownership together, without cloning documents.
Trait Implementations§
Source§impl Clone for LoadedDocumentScope
impl Clone for LoadedDocumentScope
Source§fn clone(&self) -> LoadedDocumentScope
fn clone(&self) -> LoadedDocumentScope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LoadedDocumentScope
impl RefUnwindSafe for LoadedDocumentScope
impl Send for LoadedDocumentScope
impl Sync for LoadedDocumentScope
impl Unpin for LoadedDocumentScope
impl UnsafeUnpin for LoadedDocumentScope
impl UnwindSafe for LoadedDocumentScope
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