pub struct AnnotationEdit {
pub range: Range,
pub new_text: String,
}Expand description
A text edit that modifies an annotation’s header.
Used by toggle_annotation_resolution to add or remove the status=resolved
parameter. Editors should replace the text at range with new_text.
Fields§
§range: RangeThe range to replace (the annotation header line).
new_text: StringThe new header text with updated parameters.
Trait Implementations§
Source§impl Clone for AnnotationEdit
impl Clone for AnnotationEdit
Source§fn clone(&self) -> AnnotationEdit
fn clone(&self) -> AnnotationEdit
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 AnnotationEdit
impl Debug for AnnotationEdit
Source§impl PartialEq for AnnotationEdit
impl PartialEq for AnnotationEdit
impl StructuralPartialEq for AnnotationEdit
Auto Trait Implementations§
impl Freeze for AnnotationEdit
impl RefUnwindSafe for AnnotationEdit
impl Send for AnnotationEdit
impl Sync for AnnotationEdit
impl Unpin for AnnotationEdit
impl UnsafeUnpin for AnnotationEdit
impl UnwindSafe for AnnotationEdit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more