pub struct Provenance { /* private fields */ }Expand description
Location from which a neutral-model value was derived.
Implementations§
Source§impl Provenance
impl Provenance
Sourcepub const fn spanned(source: SourceId, span: SourceSpan) -> Self
pub const fn spanned(source: SourceId, span: SourceSpan) -> Self
Creates provenance for one byte range in a source.
Sourcepub const fn runtime_observation(source: SourceId) -> Self
pub const fn runtime_observation(source: SourceId) -> Self
Creates provenance for effective state observed from a runtime resource.
Sourcepub const fn user_override(source: SourceId) -> Self
pub const fn user_override(source: SourceId) -> Self
Creates provenance for an explicit caller or user override.
Sourcepub const fn implementation_default(source: SourceId) -> Self
pub const fn implementation_default(source: SourceId) -> Self
Creates provenance for a default introduced by a named implementation profile.
Sourcepub const fn conversion_decision(source: SourceId) -> Self
pub const fn conversion_decision(source: SourceId) -> Self
Creates provenance for a value chosen by an explicit conversion decision.
Sourcepub const fn kind(&self) -> ProvenanceKind
pub const fn kind(&self) -> ProvenanceKind
Returns how this origin entered the conversion plan.
Sourcepub const fn span(&self) -> Option<SourceSpan>
pub const fn span(&self) -> Option<SourceSpan>
Returns the optional byte range.
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 Provenance
impl Debug for Provenance
impl Eq for Provenance
Source§impl PartialEq for Provenance
impl PartialEq for Provenance
impl StructuralPartialEq for Provenance
Auto Trait Implementations§
impl Freeze for Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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