pub struct SourceProvenanceV1 { /* private fields */ }Expand description
Provenance for one source observation.
Implementations§
Source§impl SourceProvenanceV1
impl SourceProvenanceV1
Sourcepub const fn format_defined() -> Self
pub const fn format_defined() -> Self
Format-defined evidence without a file-member locator.
Sourcepub fn source_declared(locator: SourceLogicalLocatorV1) -> Self
pub fn source_declared(locator: SourceLogicalLocatorV1) -> Self
Exact source-declaration evidence at a validated logical locator.
Sourcepub fn parser_projected(locator: SourceLogicalLocatorV1) -> Self
pub fn parser_projected(locator: SourceLogicalLocatorV1) -> Self
Parser-effective evidence at a validated logical locator.
Sourcepub fn derived_from_source(locator: SourceLogicalLocatorV1) -> Self
pub fn derived_from_source(locator: SourceLogicalLocatorV1) -> Self
Evidence derived from an exact declaration at a validated logical locator.
Sourcepub const fn kind(&self) -> SourceProvenanceKindV1
pub const fn kind(&self) -> SourceProvenanceKindV1
Provenance kind.
Sourcepub fn locator(&self) -> Option<&SourceLogicalLocatorV1>
pub fn locator(&self) -> Option<&SourceLogicalLocatorV1>
Bounded source-internal logical locator, when one exists.
Trait Implementations§
Source§impl Clone for SourceProvenanceV1
impl Clone for SourceProvenanceV1
Source§fn clone(&self) -> SourceProvenanceV1
fn clone(&self) -> SourceProvenanceV1
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 SourceProvenanceV1
impl Debug for SourceProvenanceV1
impl Eq for SourceProvenanceV1
Source§impl PartialEq for SourceProvenanceV1
impl PartialEq for SourceProvenanceV1
impl StructuralPartialEq for SourceProvenanceV1
Auto Trait Implementations§
impl Freeze for SourceProvenanceV1
impl RefUnwindSafe for SourceProvenanceV1
impl Send for SourceProvenanceV1
impl Sync for SourceProvenanceV1
impl Unpin for SourceProvenanceV1
impl UnsafeUnpin for SourceProvenanceV1
impl UnwindSafe for SourceProvenanceV1
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