pub struct ProjectValue<T> { /* private fields */ }Expand description
A typed value together with every source span that contributed to it during merging.
Implementations§
Source§impl<T> ProjectValue<T>
impl<T> ProjectValue<T>
Sourcepub const fn provenance(&self) -> &MergeProvenance
pub const fn provenance(&self) -> &MergeProvenance
Returns the merge operation and contributing spans in processing order.
Sourcepub fn effective_source(&self) -> Option<SourceSpan>
pub fn effective_source(&self) -> Option<SourceSpan>
Returns the most recent source contributing to this value.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether this value contains sensitive interpolation output.
Sourcepub fn into_value(self) -> T
pub fn into_value(self) -> T
Removes the provenance wrapper and returns the typed value.
Trait Implementations§
Source§impl<T: Clone> Clone for ProjectValue<T>
impl<T: Clone> Clone for ProjectValue<T>
Source§fn clone(&self) -> ProjectValue<T>
fn clone(&self) -> ProjectValue<T>
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<T: Debug> Debug for ProjectValue<T>
impl<T: Debug> Debug for ProjectValue<T>
impl<T: Eq> Eq for ProjectValue<T>
Source§impl<T: PartialEq> PartialEq for ProjectValue<T>
impl<T: PartialEq> PartialEq for ProjectValue<T>
impl<T: PartialEq> StructuralPartialEq for ProjectValue<T>
Auto Trait Implementations§
impl<T> Freeze for ProjectValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ProjectValue<T>where
T: RefUnwindSafe,
impl<T> Send for ProjectValue<T>where
T: Send,
impl<T> Sync for ProjectValue<T>where
T: Sync,
impl<T> Unpin for ProjectValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for ProjectValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ProjectValue<T>where
T: UnwindSafe,
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