pub enum FixPlanError {
NotMachineApplicable {
applicability: Applicability,
},
NoEdits,
UnguardedInsert {
file: PathBuf,
offset: usize,
},
PreconditionsFailed {
failures: Vec<FileCheckFailure>,
},
Fix(FixError),
VerificationFailed {
failures: Vec<FileCheckFailure>,
rollback_failures: Vec<RollbackFailure>,
},
}Variants§
NotMachineApplicable
Fields
§
applicability: ApplicabilityNoEdits
UnguardedInsert
PreconditionsFailed
Fields
§
failures: Vec<FileCheckFailure>Fix(FixError)
VerificationFailed
Trait Implementations§
Source§impl Debug for FixPlanError
impl Debug for FixPlanError
Source§impl Display for FixPlanError
impl Display for FixPlanError
Source§impl Error for FixPlanError
impl Error for FixPlanError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for FixPlanError
impl !UnwindSafe for FixPlanError
impl Freeze for FixPlanError
impl Send for FixPlanError
impl Sync for FixPlanError
impl Unpin for FixPlanError
impl UnsafeUnpin for FixPlanError
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