pub struct RefactoringSuggestion {
pub kind: RefactoringKind,
pub description: String,
pub estimated_savings: usize,
}Expand description
A refactoring suggestion for a clone family.
Fields§
§kind: RefactoringKindWhat kind of refactoring is suggested.
description: StringHuman-readable description of the suggestion.
estimated_savings: usizeEstimated lines that could be eliminated.
Trait Implementations§
Source§impl Clone for RefactoringSuggestion
impl Clone for RefactoringSuggestion
Source§impl Debug for RefactoringSuggestion
impl Debug for RefactoringSuggestion
Source§impl<'de> Deserialize<'de> for RefactoringSuggestion
impl<'de> Deserialize<'de> for RefactoringSuggestion
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
Auto Trait Implementations§
impl Freeze for RefactoringSuggestion
impl RefUnwindSafe for RefactoringSuggestion
impl Send for RefactoringSuggestion
impl Sync for RefactoringSuggestion
impl Unpin for RefactoringSuggestion
impl UnsafeUnpin for RefactoringSuggestion
impl UnwindSafe for RefactoringSuggestion
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