pub struct CodeFix { /* private fields */ }
Expand description
Represents a code fix. This doesn’t write to disks but is only in memory.
The general way to use this is:
- Feeds the source of a file to
CodeFix::new
. - Calls
CodeFix::apply
to apply suggestions to the source code. - Calls
CodeFix::finish
to get the “fixed” code.
Implementations§
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 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