pub struct ModuleDiff {
pub added_functions: Vec<String>,
pub removed_functions: Vec<String>,
pub modified_functions: Vec<FunctionDiff>,
pub added_imports: Vec<String>,
pub removed_imports: Vec<String>,
}Expand description
A semantic diff between two modules.
Produced by diff. Use ModuleDiff::is_empty to check for any changes
and ModuleDiff::summary for a short human-readable overview.
Fields§
§added_functions: Vec<String>Names of functions present in new but not old.
removed_functions: Vec<String>Names of functions present in old but not new.
modified_functions: Vec<FunctionDiff>Functions present in both with any change (signature, effects, body).
added_imports: Vec<String>Imports added in new (formatted as "module::item1,item2").
removed_imports: Vec<String>Imports removed in new (formatted as "module::item1,item2").
Implementations§
Trait Implementations§
Source§impl Clone for ModuleDiff
impl Clone for ModuleDiff
Source§fn clone(&self) -> ModuleDiff
fn clone(&self) -> ModuleDiff
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 ModuleDiff
impl Debug for ModuleDiff
Source§impl<'de> Deserialize<'de> for ModuleDiff
impl<'de> Deserialize<'de> for ModuleDiff
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 ModuleDiff
impl RefUnwindSafe for ModuleDiff
impl Send for ModuleDiff
impl Sync for ModuleDiff
impl Unpin for ModuleDiff
impl UnsafeUnpin for ModuleDiff
impl UnwindSafe for ModuleDiff
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