pub struct TextDocumentContentChangePartial {
pub range: Range,
pub range_length: Option<u32>,
pub text: String,
}Expand description
@since 3.18.0
Fields§
§range: RangeThe range of the document that changed.
range_length: Option<u32>👎Deprecated:
use range instead.
The optional length of the range that got replaced.
@deprecated use range instead.
text: StringThe new text for the provided range.
Implementations§
Trait Implementations§
Source§impl Clone for TextDocumentContentChangePartial
impl Clone for TextDocumentContentChangePartial
Source§fn clone(&self) -> TextDocumentContentChangePartial
fn clone(&self) -> TextDocumentContentChangePartial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for TextDocumentContentChangePartial
impl Default for TextDocumentContentChangePartial
Source§fn default() -> TextDocumentContentChangePartial
fn default() -> TextDocumentContentChangePartial
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextDocumentContentChangePartial
impl<'de> Deserialize<'de> for TextDocumentContentChangePartial
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
Source§impl From<TextDocumentContentChangePartial> for TextDocumentContentChangeEvent
impl From<TextDocumentContentChangePartial> for TextDocumentContentChangeEvent
Source§fn from(v: TextDocumentContentChangePartial) -> Self
fn from(v: TextDocumentContentChangePartial) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TextDocumentContentChangePartial
impl PartialEq for TextDocumentContentChangePartial
Source§fn eq(&self, other: &TextDocumentContentChangePartial) -> bool
fn eq(&self, other: &TextDocumentContentChangePartial) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TextDocumentContentChangePartial
impl StructuralPartialEq for TextDocumentContentChangePartial
Auto Trait Implementations§
impl Freeze for TextDocumentContentChangePartial
impl RefUnwindSafe for TextDocumentContentChangePartial
impl Send for TextDocumentContentChangePartial
impl Sync for TextDocumentContentChangePartial
impl Unpin for TextDocumentContentChangePartial
impl UnsafeUnpin for TextDocumentContentChangePartial
impl UnwindSafe for TextDocumentContentChangePartial
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