pub struct SnippetTextEdit {
pub range: Range,
pub snippet: StringValue,
pub annotation_id: Option<ChangeAnnotationIdentifier>,
}Expand description
An interactive text edit.
@since 3.18.0 @proposed
Fields§
§range: RangeThe range of the text document to be manipulated.
snippet: StringValueThe snippet to be inserted.
annotation_id: Option<ChangeAnnotationIdentifier>The actual identifier of the snippet edit.
Implementations§
Source§impl SnippetTextEdit
impl SnippetTextEdit
pub const fn new( range: Range, snippet: StringValue, annotation_id: Option<ChangeAnnotationIdentifier>, ) -> Self
Trait Implementations§
Source§impl Clone for SnippetTextEdit
impl Clone for SnippetTextEdit
Source§fn clone(&self) -> SnippetTextEdit
fn clone(&self) -> SnippetTextEdit
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 Debug for SnippetTextEdit
impl Debug for SnippetTextEdit
Source§impl Default for SnippetTextEdit
impl Default for SnippetTextEdit
Source§fn default() -> SnippetTextEdit
fn default() -> SnippetTextEdit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SnippetTextEdit
impl<'de> Deserialize<'de> for SnippetTextEdit
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<SnippetTextEdit> for Edit
impl From<SnippetTextEdit> for Edit
Source§fn from(v: SnippetTextEdit) -> Self
fn from(v: SnippetTextEdit) -> Self
Converts to this type from the input type.
Source§impl Hash for SnippetTextEdit
impl Hash for SnippetTextEdit
Source§impl PartialEq for SnippetTextEdit
impl PartialEq for SnippetTextEdit
Source§fn eq(&self, other: &SnippetTextEdit) -> bool
fn eq(&self, other: &SnippetTextEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SnippetTextEdit
impl Serialize for SnippetTextEdit
impl Eq for SnippetTextEdit
impl StructuralPartialEq for SnippetTextEdit
Auto Trait Implementations§
impl Freeze for SnippetTextEdit
impl RefUnwindSafe for SnippetTextEdit
impl Send for SnippetTextEdit
impl Sync for SnippetTextEdit
impl Unpin for SnippetTextEdit
impl UnsafeUnpin for SnippetTextEdit
impl UnwindSafe for SnippetTextEdit
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