pub struct FunctionDiff {
pub name: String,
pub signature_changed: bool,
pub old_signature: String,
pub new_signature: String,
pub effects_changed: bool,
pub old_effects: Vec<String>,
pub new_effects: Vec<String>,
pub body_node_count_delta: i64,
pub old_node_count: u32,
pub new_node_count: u32,
}Expand description
A function-level diff showing what changed between two versions.
Fields§
§name: StringFunction name (same in both versions).
signature_changed: boolWhether parameters or return type changed.
old_signature: StringSignature rendering from the old version, e.g. "fn foo(x: I64) -> Unit".
new_signature: StringSignature rendering from the new version.
effects_changed: boolWhether declared effects changed.
old_effects: Vec<String>Effects declared in the old version, as strings.
new_effects: Vec<String>Effects declared in the new version, as strings.
body_node_count_delta: i64Difference in body node count: new - old. Negative values indicate shrinkage.
old_node_count: u32Total body node count in the old version.
new_node_count: u32Total body node count in the new version.
Trait Implementations§
Source§impl Clone for FunctionDiff
impl Clone for FunctionDiff
Source§fn clone(&self) -> FunctionDiff
fn clone(&self) -> FunctionDiff
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 FunctionDiff
impl Debug for FunctionDiff
Source§impl<'de> Deserialize<'de> for FunctionDiff
impl<'de> Deserialize<'de> for FunctionDiff
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 FunctionDiff
impl RefUnwindSafe for FunctionDiff
impl Send for FunctionDiff
impl Sync for FunctionDiff
impl Unpin for FunctionDiff
impl UnsafeUnpin for FunctionDiff
impl UnwindSafe for FunctionDiff
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