pub struct Suggestion {
pub text: String,
pub code: Option<String>,
}Expand description
Suggestion for fixing an error.
Fields§
§text: StringThe suggestion text.
code: Option<String>Optional code example.
Implementations§
Trait Implementations§
Source§impl Clone for Suggestion
impl Clone for Suggestion
Auto Trait Implementations§
impl Forget for Suggestion
impl Freeze for Suggestion
impl Move for Suggestion
impl RefUnwindSafe for Suggestion
impl Send for Suggestion
impl Sync for Suggestion
impl Unpin for Suggestion
impl UnsafeUnpin for Suggestion
impl UnwindSafe for Suggestion
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