pub struct DocumentInterpolation { /* private fields */ }Expand description
A non-destructive interpolation overlay for one syntax document.
Implementations§
Source§impl DocumentInterpolation
impl DocumentInterpolation
Sourcepub fn values(&self) -> &[InterpolationResult]
pub fn values(&self) -> &[InterpolationResult]
Returns eligible value-scalar results in source order.
Sourcepub fn value(&self, span: SourceSpan) -> Option<&InterpolationResult>
pub fn value(&self, span: SourceSpan) -> Option<&InterpolationResult>
Finds the result for an exact value-scalar span.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns aggregated interpolation diagnostics in source order.
Trait Implementations§
Source§impl Clone for DocumentInterpolation
impl Clone for DocumentInterpolation
Source§fn clone(&self) -> DocumentInterpolation
fn clone(&self) -> DocumentInterpolation
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 DocumentInterpolation
impl Debug for DocumentInterpolation
impl Eq for DocumentInterpolation
Source§impl PartialEq for DocumentInterpolation
impl PartialEq for DocumentInterpolation
impl StructuralPartialEq for DocumentInterpolation
Auto Trait Implementations§
impl Freeze for DocumentInterpolation
impl RefUnwindSafe for DocumentInterpolation
impl Send for DocumentInterpolation
impl Sync for DocumentInterpolation
impl Unpin for DocumentInterpolation
impl UnsafeUnpin for DocumentInterpolation
impl UnwindSafe for DocumentInterpolation
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