pub struct FixHint {
pub title: String,
pub explanation: String,
pub before: String,
pub after: String,
pub suggestion: String,
pub start: u32,
pub end: u32,
pub start_line: u32,
pub start_col: u32,
pub end_line: u32,
pub end_col: u32,
}Expand description
A concrete rewrite the UI can preview and apply via Monaco executeEdits.
Fields§
§title: String§explanation: StringHuman explanation in plain “dev-speak”.
before: StringCurrent source slice that will be replaced.
after: StringSuggested replacement source (same as Self::suggestion).
suggestion: StringExact string to splice over [start, end) — preferred by Smart Fix Pro.
start: u32Inclusive-exclusive UTF-8 byte range into the grammar source.
end: u32§start_line: u321-based line/column range covering the same bytes (for Monaco).
start_col: u32§end_line: u32§end_col: u32Implementations§
Trait Implementations§
impl Eq for FixHint
impl StructuralPartialEq for FixHint
Auto Trait Implementations§
impl Freeze for FixHint
impl RefUnwindSafe for FixHint
impl Send for FixHint
impl Sync for FixHint
impl Unpin for FixHint
impl UnsafeUnpin for FixHint
impl UnwindSafe for FixHint
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