pub struct AnnotatedTextEdit {
pub annotation_id: ChangeAnnotationIdentifier,
pub text_edit: TextEdit,
}Expand description
A special text edit with an additional change annotation.
@since 3.16.0.
Fields§
§annotation_id: ChangeAnnotationIdentifierThe actual identifier of the change annotation
text_edit: TextEditImplementations§
Source§impl AnnotatedTextEdit
impl AnnotatedTextEdit
pub const fn new( annotation_id: ChangeAnnotationIdentifier, text_edit: TextEdit, ) -> Self
Trait Implementations§
Source§impl Clone for AnnotatedTextEdit
impl Clone for AnnotatedTextEdit
Source§fn clone(&self) -> AnnotatedTextEdit
fn clone(&self) -> AnnotatedTextEdit
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 AnnotatedTextEdit
impl Debug for AnnotatedTextEdit
Source§impl Default for AnnotatedTextEdit
impl Default for AnnotatedTextEdit
Source§fn default() -> AnnotatedTextEdit
fn default() -> AnnotatedTextEdit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotatedTextEdit
impl<'de> Deserialize<'de> for AnnotatedTextEdit
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<AnnotatedTextEdit> for Edit
impl From<AnnotatedTextEdit> for Edit
Source§fn from(v: AnnotatedTextEdit) -> Self
fn from(v: AnnotatedTextEdit) -> Self
Converts to this type from the input type.
Source§impl Hash for AnnotatedTextEdit
impl Hash for AnnotatedTextEdit
Source§impl PartialEq for AnnotatedTextEdit
impl PartialEq for AnnotatedTextEdit
Source§fn eq(&self, other: &AnnotatedTextEdit) -> bool
fn eq(&self, other: &AnnotatedTextEdit) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AnnotatedTextEdit
impl Serialize for AnnotatedTextEdit
impl Eq for AnnotatedTextEdit
impl StructuralPartialEq for AnnotatedTextEdit
Auto Trait Implementations§
impl Freeze for AnnotatedTextEdit
impl RefUnwindSafe for AnnotatedTextEdit
impl Send for AnnotatedTextEdit
impl Sync for AnnotatedTextEdit
impl Unpin for AnnotatedTextEdit
impl UnsafeUnpin for AnnotatedTextEdit
impl UnwindSafe for AnnotatedTextEdit
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