pub struct SourceMetadataIndex { /* private fields */ }Expand description
The folded exporter metadata of a whole export, keyed by every source path it covers.
An ExtractedImport is keyed by each entry’s primary path, but the executor imports one
member at a time (an edited rendition is its own signed asset), so the index maps every
member of an entry to that entry’s record: the exporter describes the photograph, and each
member is a rendition of it.
Implementations§
Source§impl SourceMetadataIndex
impl SourceMetadataIndex
Sourcepub fn from_extracted(extracted: &ExtractedImport) -> Self
pub fn from_extracted(extracted: &ExtractedImport) -> Self
Index an adapter’s extraction by every member path of every entry.
Sourcepub fn get(&self, path: &Path) -> Option<&ExtractedMetadata>
pub fn get(&self, path: &Path) -> Option<&ExtractedMetadata>
The folded record for a source file, if the export carried one.
Trait Implementations§
Source§impl Clone for SourceMetadataIndex
impl Clone for SourceMetadataIndex
Source§fn clone(&self) -> SourceMetadataIndex
fn clone(&self) -> SourceMetadataIndex
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 moreSource§impl Debug for SourceMetadataIndex
impl Debug for SourceMetadataIndex
Source§impl Default for SourceMetadataIndex
impl Default for SourceMetadataIndex
Source§fn default() -> SourceMetadataIndex
fn default() -> SourceMetadataIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SourceMetadataIndex
impl RefUnwindSafe for SourceMetadataIndex
impl Send for SourceMetadataIndex
impl Sync for SourceMetadataIndex
impl Unpin for SourceMetadataIndex
impl UnsafeUnpin for SourceMetadataIndex
impl UnwindSafe for SourceMetadataIndex
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more