pub enum SafetyClassification {
Safe,
PotentiallyUnsafe,
Unsafe,
}Expand description
Represents the safety classifications of a code fix operation.
Variants§
Safe
Safe operations that are unlikely to cause issues.
PotentiallyUnsafe
Operations that might cause issues under certain circumstances.
Unsafe
Operations that are known to be unsafe.
Trait Implementations§
Source§impl Clone for SafetyClassification
impl Clone for SafetyClassification
Source§fn clone(&self) -> SafetyClassification
fn clone(&self) -> SafetyClassification
Returns a copy of the value. Read more
1.0.0 · 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 SafetyClassification
impl Debug for SafetyClassification
Source§impl<'de> Deserialize<'de> for SafetyClassification
impl<'de> Deserialize<'de> for SafetyClassification
Source§fn 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
Source§impl Display for SafetyClassification
impl Display for SafetyClassification
Source§impl Hash for SafetyClassification
impl Hash for SafetyClassification
Source§impl Ord for SafetyClassification
impl Ord for SafetyClassification
Source§fn cmp(&self, other: &SafetyClassification) -> Ordering
fn cmp(&self, other: &SafetyClassification) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SafetyClassification
impl PartialEq for SafetyClassification
Source§impl PartialOrd for SafetyClassification
impl PartialOrd for SafetyClassification
Source§impl Serialize for SafetyClassification
impl Serialize for SafetyClassification
impl Copy for SafetyClassification
impl Eq for SafetyClassification
impl StructuralPartialEq for SafetyClassification
Auto Trait Implementations§
impl Freeze for SafetyClassification
impl RefUnwindSafe for SafetyClassification
impl Send for SafetyClassification
impl Sync for SafetyClassification
impl Unpin for SafetyClassification
impl UnwindSafe for SafetyClassification
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