pub struct DocumentWorkspace { /* private fields */ }Implementations§
Source§impl DocumentWorkspace
impl DocumentWorkspace
pub fn new() -> Self
pub fn with_analyzer(analyzer: Analyzer) -> Self
pub fn replace_analyzer(&mut self, analyzer: Analyzer)
pub fn upsert( &mut self, uri: impl Into<DocumentUri>, version: i32, text: String, kind: DocumentKind, ) -> DocumentSnapshot
pub fn build_snapshot( &self, uri: impl Into<DocumentUri>, version: i32, text: String, kind: DocumentKind, ) -> DocumentSnapshot
pub fn build_snapshot_with_analyzer( analyzer: &Analyzer, uri: impl Into<DocumentUri>, version: i32, text: String, kind: DocumentKind, ) -> DocumentSnapshot
pub fn get(&self, uri: &DocumentUri) -> Option<&DocumentSnapshot>
pub fn remove(&mut self, uri: &DocumentUri)
pub fn snapshots(&self) -> Vec<DocumentSnapshot>
Trait Implementations§
Source§impl Debug for DocumentWorkspace
impl Debug for DocumentWorkspace
Auto Trait Implementations§
impl Freeze for DocumentWorkspace
impl RefUnwindSafe for DocumentWorkspace
impl Send for DocumentWorkspace
impl Sync for DocumentWorkspace
impl Unpin for DocumentWorkspace
impl UnsafeUnpin for DocumentWorkspace
impl UnwindSafe for DocumentWorkspace
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