pub struct CodeFix {
pub message: String,
pub span: Span,
pub replacement: String,
}Expand description
A code fix suggestion.
Fields§
§message: StringHuman-readable description of the fix
span: SpanSpan of code to replace
replacement: StringReplacement text
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CodeFix
impl RefUnwindSafe for CodeFix
impl Send for CodeFix
impl Sync for CodeFix
impl Unpin for CodeFix
impl UnsafeUnpin for CodeFix
impl UnwindSafe for CodeFix
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