Enum cargo_metadata::diagnostic::Applicability
source · [−]#[non_exhaustive]
pub enum Applicability {
MachineApplicable,
HasPlaceholders,
MaybeIncorrect,
Unspecified,
}
Expand description
Whether a suggestion can be safely applied.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MachineApplicable
The suggested replacement can be applied automatically safely
HasPlaceholders
The suggested replacement has placeholders that will need to be manually replaced.
MaybeIncorrect
The suggested replacement may be incorrect in some circumstances. Needs human review.
Unspecified
The suggested replacement will probably not work.
Trait Implementations
sourceimpl Clone for Applicability
impl Clone for Applicability
sourcefn clone(&self) -> Applicability
fn clone(&self) -> Applicability
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Applicability
impl Debug for Applicability
sourceimpl<'de> Deserialize<'de> for Applicability
impl<'de> Deserialize<'de> for Applicability
sourcefn 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
sourceimpl Hash for Applicability
impl Hash for Applicability
sourceimpl PartialEq<Applicability> for Applicability
impl PartialEq<Applicability> for Applicability
sourcefn eq(&self, other: &Applicability) -> bool
fn eq(&self, other: &Applicability) -> bool
sourceimpl Serialize for Applicability
impl Serialize for Applicability
impl Eq for Applicability
impl StructuralEq for Applicability
impl StructuralPartialEq for Applicability
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more