pub struct ProjectInterpolation { /* private fields */ }Expand description
Per-file interpolation overlays for one loaded project.
Implementations§
Source§impl ProjectInterpolation
impl ProjectInterpolation
Sourcepub fn documents(&self) -> &[DocumentInterpolation]
pub fn documents(&self) -> &[DocumentInterpolation]
Returns document overlays in file order.
Sourcepub fn document(&self, source_id: SourceId) -> Option<&DocumentInterpolation>
pub fn document(&self, source_id: SourceId) -> Option<&DocumentInterpolation>
Finds a document overlay by source identifier.
Sourcepub fn diagnostics(&self) -> &[Diagnostic]
pub fn diagnostics(&self) -> &[Diagnostic]
Returns aggregated interpolation diagnostics in file order.
Trait Implementations§
Source§impl Clone for ProjectInterpolation
impl Clone for ProjectInterpolation
Source§fn clone(&self) -> ProjectInterpolation
fn clone(&self) -> ProjectInterpolation
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 ProjectInterpolation
impl Debug for ProjectInterpolation
impl Eq for ProjectInterpolation
Source§impl PartialEq for ProjectInterpolation
impl PartialEq for ProjectInterpolation
impl StructuralPartialEq for ProjectInterpolation
Auto Trait Implementations§
impl Freeze for ProjectInterpolation
impl RefUnwindSafe for ProjectInterpolation
impl Send for ProjectInterpolation
impl Sync for ProjectInterpolation
impl Unpin for ProjectInterpolation
impl UnsafeUnpin for ProjectInterpolation
impl UnwindSafe for ProjectInterpolation
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