pub struct LspManager { /* private fields */ }Implementations§
Source§impl LspManager
impl LspManager
pub fn new(workspace_root: impl Into<PathBuf>) -> Self
pub fn diagnostics(&self, rel_path: &str) -> Vec<LspDiagnostic>
pub fn symbols(&self, q: Option<&str>) -> Vec<LspSymbol>
pub fn goto_definition(&self, symbol: &str) -> Option<LspLocation>
pub fn references(&self, symbol: &str) -> Vec<LspLocation>
pub fn hover(&self, symbol: &str) -> Option<String>
pub fn call_hierarchy(&self, symbol: &str) -> Value
Trait Implementations§
Source§impl Clone for LspManager
impl Clone for LspManager
Source§fn clone(&self) -> LspManager
fn clone(&self) -> LspManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LspManager
impl RefUnwindSafe for LspManager
impl Send for LspManager
impl Sync for LspManager
impl Unpin for LspManager
impl UnsafeUnpin for LspManager
impl UnwindSafe for LspManager
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