pub struct Substitution { /* private fields */ }Expand description
Provenance for one evaluated variable expression.
Implementations§
Source§impl Substitution
impl Substitution
Sourcepub const fn operator(&self) -> InterpolationOperator
pub const fn operator(&self) -> InterpolationOperator
Returns the expression operator.
Sourcepub const fn outcome(&self) -> SubstitutionOutcome
pub const fn outcome(&self) -> SubstitutionOutcome
Returns how the expression contributed to the result.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the containing scalar’s source span.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether this substitution inserted sensitive content.
Trait Implementations§
Source§impl Clone for Substitution
impl Clone for Substitution
Source§fn clone(&self) -> Substitution
fn clone(&self) -> Substitution
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 Substitution
impl Debug for Substitution
impl Eq for Substitution
Source§impl PartialEq for Substitution
impl PartialEq for Substitution
impl StructuralPartialEq for Substitution
Auto Trait Implementations§
impl Freeze for Substitution
impl RefUnwindSafe for Substitution
impl Send for Substitution
impl Sync for Substitution
impl Unpin for Substitution
impl UnsafeUnpin for Substitution
impl UnwindSafe for Substitution
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