pub struct FixEdit {
pub span: Span,
pub replacement: String,
}Expand description
A machine-applicable text replacement for autofixing diagnostics.
Fields§
§span: SpanThe source span to replace.
replacement: StringThe replacement text (empty string = deletion).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FixEdit
impl RefUnwindSafe for FixEdit
impl Send for FixEdit
impl Sync for FixEdit
impl Unpin for FixEdit
impl UnsafeUnpin for FixEdit
impl UnwindSafe for FixEdit
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