pub struct InterpolationResult { /* private fields */ }Expand description
A recoverable, non-destructive interpolation result.
Implementations§
Source§impl InterpolationResult
impl InterpolationResult
Sourcepub fn resolved(&self) -> &str
pub fn resolved(&self) -> &str
Returns the recovered resolved value.
Required-variable and invalid-expression errors retain the offending expression so callers can continue analysis without silently losing source intent.
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the source span of the containing scalar.
Sourcepub const fn is_sensitive(&self) -> bool
pub const fn is_sensitive(&self) -> bool
Reports whether the input or an inserted value is sensitive.
Sourcepub fn substitutions(&self) -> &[Substitution]
pub fn substitutions(&self) -> &[Substitution]
Returns evaluated expressions in evaluation order.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns interpolation diagnostics.
Trait Implementations§
Source§impl Clone for InterpolationResult
impl Clone for InterpolationResult
Source§fn clone(&self) -> InterpolationResult
fn clone(&self) -> InterpolationResult
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 InterpolationResult
impl Debug for InterpolationResult
impl Eq for InterpolationResult
Source§impl PartialEq for InterpolationResult
impl PartialEq for InterpolationResult
impl StructuralPartialEq for InterpolationResult
Auto Trait Implementations§
impl Freeze for InterpolationResult
impl RefUnwindSafe for InterpolationResult
impl Send for InterpolationResult
impl Sync for InterpolationResult
impl Unpin for InterpolationResult
impl UnsafeUnpin for InterpolationResult
impl UnwindSafe for InterpolationResult
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