pub struct Fix {
pub title: String,
pub applicability: Applicability,
pub edits: Vec<Edit>,
}Expand description
A way to fix a diagnostic: edits applied together.
Fields§
§title: StringWhat the fix does, in a few words.
applicability: ApplicabilityWhether a program may apply it without asking.
edits: Vec<Edit>The edits, applied together.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fix
impl<'de> Deserialize<'de> for Fix
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Fix
Auto Trait Implementations§
impl Forget for Fix
impl Freeze for Fix
impl Move for Fix
impl RefUnwindSafe for Fix
impl Send for Fixwhere
RawVecInner: Send,
impl Sync for Fixwhere
RawVecInner: Sync,
impl Unpin for Fix
impl UnsafeUnpin for Fixwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Edit>: UnsafeUnpin,
impl UnwindSafe for Fixwhere
RawVecInner: UnwindSafe,
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