pub enum Safety {
Safe,
PotentiallyUnsafe,
Unsafe,
}Expand description
Represents the safety of applying a specific edit.
Ordered from most safe to least safe.
Variants§
Safe
Safe to apply automatically. The semantic meaning of the code is preserved. Example: Formatting, renaming a local variable.
PotentiallyUnsafe
Likely safe, but changes semantics slightly or relies on heuristics. Example: Removing an unused variable (might have side effects in constructor).
Unsafe
Requires manual user review. Valid code, but changes logic significantly. Example: Changing type casts, altering control flow logic.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Safety
impl<'de> Deserialize<'de> for Safety
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 Ord for Safety
impl Ord for Safety
Source§impl PartialOrd for Safety
impl PartialOrd for Safety
impl Copy for Safety
impl Eq for Safety
impl StructuralPartialEq for Safety
Auto Trait Implementations§
impl Freeze for Safety
impl RefUnwindSafe for Safety
impl Send for Safety
impl Sync for Safety
impl Unpin for Safety
impl UnwindSafe for Safety
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