pub struct WorkspaceScanner { /* private fields */ }Implementations§
Source§impl WorkspaceScanner
impl WorkspaceScanner
pub fn new() -> Self
Sourcepub fn update_doc(&mut self, doc: &Document)
pub fn update_doc(&mut self, doc: &Document)
Workspace scanner has its own copies that are not always up to date. This should be called when there is a document change notification. When there is a full rescan, call this with all checkpoints right after the gather.
Sourcepub fn get_workspace(&self) -> &Workspace
pub fn get_workspace(&self) -> &Workspace
Borrow the workspace data
Sourcepub fn set_workspace(&mut self, ws: Workspace)
pub fn set_workspace(&mut self, ws: Workspace)
Set the workspace data, source is probably another analysis object
Sourcepub fn append_volatile_docs(&mut self, docs: Vec<Document>)
pub fn append_volatile_docs(&mut self, docs: Vec<Document>)
Add volatile documents to the workspace set, useful for piped documents
Trait Implementations§
Source§fn visit(&mut self, curs: &TreeCursor<'_>) -> Result<Navigation, Box<dyn Error>>
fn visit(&mut self, curs: &TreeCursor<'_>) -> Result<Navigation, Box<dyn Error>>
Visitor to build information about the overall workspace.
Important that this be efficient since every file is scanned.
The caller should skip over all lines but those matching scan_patt.
For this scan we do not need or want to descend into includes (no recursive includes).
fn descend( &mut self, _curs: &TreeCursor<'_>, ) -> Result<Navigation, Box<dyn Error>>
fn walk(&mut self, tree: &Tree) -> Result<(), Box<dyn Error>>
Auto Trait Implementations§
impl !Freeze for WorkspaceScanner
impl !RefUnwindSafe for WorkspaceScanner
impl Send for WorkspaceScanner
impl Sync for WorkspaceScanner
impl Unpin for WorkspaceScanner
impl UnsafeUnpin for WorkspaceScanner
impl UnwindSafe for WorkspaceScanner
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