pub struct AnalysisSession { /* private fields */ }Implementations§
Source§impl AnalysisSession
impl AnalysisSession
pub fn new() -> Self
pub fn with_config(config: AnalysisConfig) -> Self
pub fn set_document( &mut self, uri: impl Into<String>, version: i32, text: impl Into<String>, )
pub fn remove_document(&mut self, uri: &str) -> Option<DocumentSnapshot>
pub fn snapshot(&self, uri: &str) -> Option<&DocumentSnapshot>
pub fn diagnostics(&self, uri: &str) -> Vec<Diagnostic>
Trait Implementations§
Source§impl Debug for AnalysisSession
impl Debug for AnalysisSession
Source§impl Default for AnalysisSession
impl Default for AnalysisSession
Source§fn default() -> AnalysisSession
fn default() -> AnalysisSession
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalysisSession
impl RefUnwindSafe for AnalysisSession
impl Send for AnalysisSession
impl Sync for AnalysisSession
impl Unpin for AnalysisSession
impl UnsafeUnpin for AnalysisSession
impl UnwindSafe for AnalysisSession
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