pub struct SidecarEdit {
pub start_byte: usize,
pub end_byte: usize,
pub new_text: String,
}Expand description
A text edit to apply to an .aqm sidecar file.
Fields§
§start_byte: usizeByte offset of the start of the region to replace.
end_byte: usizeByte offset of the end of the region to replace.
new_text: StringReplacement text (empty string = deletion).
Trait Implementations§
Source§impl Clone for SidecarEdit
impl Clone for SidecarEdit
Source§fn clone(&self) -> SidecarEdit
fn clone(&self) -> SidecarEdit
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 SidecarEdit
impl Debug for SidecarEdit
Source§impl PartialEq for SidecarEdit
impl PartialEq for SidecarEdit
Source§impl Serialize for SidecarEdit
impl Serialize for SidecarEdit
impl Eq for SidecarEdit
impl StructuralPartialEq for SidecarEdit
Auto Trait Implementations§
impl Freeze for SidecarEdit
impl RefUnwindSafe for SidecarEdit
impl Send for SidecarEdit
impl Sync for SidecarEdit
impl Unpin for SidecarEdit
impl UnsafeUnpin for SidecarEdit
impl UnwindSafe for SidecarEdit
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> 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