Enum rustc_errors::Applicability [−][src]
pub enum Applicability {
MachineApplicable,
MaybeIncorrect,
HasPlaceholders,
Unspecified,
}Expand description
Indicates the confidence in the correctness of a suggestion.
All suggestions are marked with an Applicability. Tools use the applicability of a suggestion
to determine whether it should be automatically applied or if the user should be consulted
before applying the suggestion.
Variants
Expand description
The suggestion is definitely what the user intended. This suggestion should be automatically applied.
Expand description
The suggestion may be what the user intended, but it is uncertain. The suggestion should result in valid Rust code if it is applied.
Expand description
The suggestion contains placeholders like (...) or { /* fields */ }. The suggestion
cannot be applied automatically because it will not result in valid Rust code. The user
will need to fill in the placeholders.
Expand description
The applicability of the suggestion is unknown.
Auto Trait Implementations
impl RefUnwindSafe for Applicability
impl Send for Applicability
impl Sync for Applicability
impl Unpin for Applicability
impl UnwindSafe for Applicability
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more