pub enum Applicability {
MachineApplicable,
MaybeIncorrect,
HasPlaceholders,
Unspecified,
}Expand description
How safe it is to auto-apply a suggestion. Modelled on rustc’s
Applicability.
Variants§
MachineApplicable
The suggestion is definitely correct; a --fix tool can apply it
without human review.
MaybeIncorrect
The suggestion is likely correct but might need a minor tweak (e.g. disambiguating an identifier). Should be reviewed before auto-applying.
HasPlaceholders
The suggestion contains <placeholder> tokens that a human must
fill in before it compiles.
Unspecified
We don’t know how confident to be.
Trait Implementations§
Source§impl Clone for Applicability
impl Clone for Applicability
Source§fn clone(&self) -> Applicability
fn clone(&self) -> Applicability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Applicability
impl Debug for Applicability
Source§impl PartialEq for Applicability
impl PartialEq for Applicability
Source§fn eq(&self, other: &Applicability) -> bool
fn eq(&self, other: &Applicability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Applicability
impl Eq for Applicability
impl StructuralPartialEq for Applicability
Auto Trait Implementations§
impl Freeze for Applicability
impl RefUnwindSafe for Applicability
impl Send for Applicability
impl Sync for Applicability
impl Unpin for Applicability
impl UnsafeUnpin for Applicability
impl UnwindSafe for Applicability
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