Struct lsp_document::TextChange
source · [−]Expand description
Native representation of a change that replaces a part of the target text.
Can be converted to and from lsp_types::TextDocumentContentChangeEvent
by
TextAdapter
.
Fields
range: Option<Range<Pos>>
Specifies the part of the text that needs to be replaced. When None
the
whole text needs to be replaced.
patch: String
The replacement text.
Auto Trait Implementations
impl RefUnwindSafe for TextChange
impl Send for TextChange
impl Sync for TextChange
impl Unpin for TextChange
impl UnwindSafe for TextChange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more