pub struct Fix {
pub start: usize,
pub end: usize,
pub replacement: String,
}Expand description
A change to the source line of a diagnostic: some of its characters replaced by others.
Fields§
§start: usizeThe 0-based character offset of the first character replaced.
end: usizeThe offset after the last one (equal to start to insert).
replacement: StringThe new text.
Trait Implementations§
impl Eq for Fix
impl StructuralPartialEq for Fix
Auto Trait Implementations§
impl Freeze for Fix
impl RefUnwindSafe for Fix
impl Send for Fix
impl Sync for Fix
impl Unpin for Fix
impl UnsafeUnpin for Fix
impl UnwindSafe for Fix
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