pub struct Replacement {
pub start: LineColumn,
pub end: LineColumn,
pub new_text: String,
}Expand description
Represents a single textual replacement in the source code.
Fields§
§start: LineColumnStarting position (line, column) - 1-indexed for lines, 0-indexed for columns
end: LineColumnEnding position (line, column) - 1-indexed for lines, 0-indexed for columns
new_text: StringThe text to replace with
Implementations§
Source§impl Replacement
impl Replacement
pub const fn new(start: LineColumn, end: LineColumn, new_text: String) -> Self
Trait Implementations§
Source§impl Clone for Replacement
impl Clone for Replacement
Source§impl Debug for Replacement
impl Debug for Replacement
impl Eq for Replacement
Source§impl Ord for Replacement
impl Ord for Replacement
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for Replacement
impl PartialEq for Replacement
Source§impl PartialOrd for Replacement
impl PartialOrd for Replacement
impl StructuralPartialEq for Replacement
Auto Trait Implementations§
impl Freeze for Replacement
impl RefUnwindSafe for Replacement
impl Send for Replacement
impl Sync for Replacement
impl Unpin for Replacement
impl UnsafeUnpin for Replacement
impl UnwindSafe for Replacement
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