[−][src]Struct lsp_text_document::FullTextDocument
Fields
uri: Url
language_id: String
The text document's language identifier.
version: i64
The version number of this document (it will strictly increase after each change, including undo/redo).
text: String
The content of the opened text document.
Implementations
impl FullTextDocument
[src]
pub fn new(
uri: Url,
language_id: String,
version: i64,
text: String
) -> FullTextDocument
[src]
uri: Url,
language_id: String,
version: i64,
text: String
) -> FullTextDocument
pub fn update(
&mut self,
changes: Vec<TextDocumentContentChangeEvent>,
version: i64
)
[src]
&mut self,
changes: Vec<TextDocumentContentChangeEvent>,
version: i64
)
pub fn transform_offset_to_byte_offset(
&self,
start_offset: usize,
end_offset: usize
) -> (usize, usize)
[src]
&self,
start_offset: usize,
end_offset: usize
) -> (usize, usize)
pub fn position_at(&mut self, offset: u32) -> Position
[src]
pub fn line_count(&mut self) -> usize
[src]
pub fn is_incremental(event: &TextDocumentContentChangeEvent) -> bool
[src]
pub fn is_full(event: &TextDocumentContentChangeEvent) -> bool
[src]
pub fn get_line_offsets(&mut self) -> &mut Vec<usize>
[src]
pub fn offset_at(&mut self, position: Position) -> usize
[src]
Trait Implementations
impl Clone for FullTextDocument
[src]
pub fn clone(&self) -> FullTextDocument
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for FullTextDocument
[src]
impl Send for FullTextDocument
[src]
impl Sync for FullTextDocument
[src]
impl Unpin for FullTextDocument
[src]
impl UnwindSafe for FullTextDocument
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,