pub struct ModernizationSuggestion {
pub old_pattern: String,
pub new_pattern: String,
pub description: String,
pub manual_review_required: bool,
pub start: usize,
pub end: usize,
}Expand description
A suggestion for modernizing legacy Perl code patterns.
Fields§
§old_pattern: StringThe original code pattern that should be replaced.
new_pattern: StringThe modern replacement pattern.
description: StringHuman-readable explanation of why this change is recommended.
manual_review_required: boolWhether this suggestion requires manual review before applying.
start: usizeStart byte offset of the pattern in the source code.
end: usizeEnd byte offset of the pattern in the source code.
Trait Implementations§
Source§impl Clone for ModernizationSuggestion
impl Clone for ModernizationSuggestion
Source§fn clone(&self) -> ModernizationSuggestion
fn clone(&self) -> ModernizationSuggestion
Returns a duplicate 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 ModernizationSuggestion
impl Debug for ModernizationSuggestion
Source§impl PartialEq for ModernizationSuggestion
impl PartialEq for ModernizationSuggestion
impl StructuralPartialEq for ModernizationSuggestion
Auto Trait Implementations§
impl Freeze for ModernizationSuggestion
impl RefUnwindSafe for ModernizationSuggestion
impl Send for ModernizationSuggestion
impl Sync for ModernizationSuggestion
impl Unpin for ModernizationSuggestion
impl UnsafeUnpin for ModernizationSuggestion
impl UnwindSafe for ModernizationSuggestion
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