pub struct TextDocumentContentChangeEvent {
pub range: Option<Range>,
pub range_length: Option<i32>,
pub text: String,
}Expand description
A change to a text document.
Fields§
§range: Option<Range>If range is omitted, the new text is considered to be the full content of the document.
range_length: Option<i32>The length of the range that got replaced.
text: StringThe new text of the range/document.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextDocumentContentChangeEvent
impl<'de> Deserialize<'de> for TextDocumentContentChangeEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TextDocumentContentChangeEvent
impl RefUnwindSafe for TextDocumentContentChangeEvent
impl Send for TextDocumentContentChangeEvent
impl Sync for TextDocumentContentChangeEvent
impl Unpin for TextDocumentContentChangeEvent
impl UnwindSafe for TextDocumentContentChangeEvent
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