pub struct TextEditDTO {
pub Range: RangeDTO,
pub NewText: String,
}Expand description
A serializable struct representing a text edit, analogous to
vscode.TextEdit. It is the fundamental building block for formatting edits
and workspace edits.
Fields§
§Range: RangeDTOThe range of text to be replaced.
NewText: StringThe new text to be inserted.
Trait Implementations§
Source§impl Clone for TextEditDTO
impl Clone for TextEditDTO
Source§fn clone(&self) -> TextEditDTO
fn clone(&self) -> TextEditDTO
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextEditDTO
impl Debug for TextEditDTO
Source§impl<'de> Deserialize<'de> for TextEditDTO
impl<'de> Deserialize<'de> for TextEditDTO
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 TextEditDTO
impl RefUnwindSafe for TextEditDTO
impl Send for TextEditDTO
impl Sync for TextEditDTO
impl Unpin for TextEditDTO
impl UnwindSafe for TextEditDTO
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