pub trait RepairSystem: Debug {
// Required methods
fn name(&self) -> &str;
fn repair_project(
&self,
src_path: &str,
manifest_path: &str,
fn_name: &str,
) -> RepairResult;
fn repair_file(&self, file_name: &str, new_file_name: &str) -> RepairResult;
fn repair_function(
&self,
file_name: &str,
new_file_name: &str,
fn_name: &str,
) -> RepairResult;
fn clone_box(&self) -> Box<dyn RepairSystem>;
}Required Methods§
fn name(&self) -> &str
fn repair_project( &self, src_path: &str, manifest_path: &str, fn_name: &str, ) -> RepairResult
fn repair_file(&self, file_name: &str, new_file_name: &str) -> RepairResult
fn repair_function( &self, file_name: &str, new_file_name: &str, fn_name: &str, ) -> RepairResult
fn clone_box(&self) -> Box<dyn RepairSystem>
Trait Implementations§
Source§impl Clone for Box<dyn RepairSystem>
impl Clone for Box<dyn RepairSystem>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more